<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def make_name_ac_map(assy_name, primary_only=False):
 """make map from sequence name to accession for given assembly name 'NC_000001.11' """

    return {
        s['name']: s['refseq_ac']
        for s in get_assembly(assy_name)['sequences']
        if (not primary_only or _is_primary(s))
    }