<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def sketch_fasta(fasta_path, outdir):
 """Create a Mash sketch from an input fasta file Args: fasta_path (str):
 input fasta file path. Genome name in fasta filename outdir (str):
 output directory path to write Mash sketch file to Returns: str: output Mash sketch file path """

    genome_name = genome_name_from_fasta_path(fasta_path)
    outpath = os.path.join(outdir, genome_name)
    args = ['mash', 'sketch', '-o', outpath, fasta_path]
    logging.info('Running Mash sketch with command: %s', ' '.join(args))
    p = Popen(args)
    p.wait()
    sketch_path = outpath + '.msh'
    assert os.path.exists(sketch_path), 'Mash sketch for genome {} was not created at {}'.format(
        genome_name,
        sketch_path)
    return sketch_path