def is_variant(self, fields):
    """Determines whether or not the VCF fields constitute a variant."""
    if 'alternate_bases' in fields and fields['alternate_bases']:
      return True
    return False
dataset/ETHPy150Open googlegenomics/codelabs/Python/PlatinumGenomes-variant-transformation/gvcf_expander.py/GvcfExpander.is_variant/original