code: def _prettify_genotype(genotype):
      """Get more human-readable display name and grouping for a given genotype."""
      pretty = genotype
      group = "others"
      alleles = json.loads(genotype)
      if len(alleles) == 2:
          g1, g2 = sorted(alleles)
          if g1 == 0 and g2 == 0:
              pretty = REF
              group = "main"
          elif g1 == -1 and g2 == -1:
              pretty = UNCALLED
          elif g1 == 0 and g2 > 0:
              pretty = HET
              group = "main"
          elif g1 == g2:
              pretty = HOM
              group = "main"
          else:
              pretty = HET_BOTH
      return pretty, group
  
imports: import io
  import json
  import os
  import altair
  import numpy
  import pandas
  import tensorflow
label_desc: Use image node_id 2 for calling a global function with example usage: _prettify_genotype(genotype) and returns: pretty,  group