<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def record_variant_id(record):
 """Get variant ID from pyvcf.model._Record"""

    if record.ID:
        return record.ID
    else:
        return record.CHROM + ':' + str(record.POS)