code: def get_paired_phenotype(data):
      
      allowed_names = set(["tumor", "normal"])
      p = tz.get_in(["metadata", "phenotype"], data)
      return p if p in allowed_names else None
docs: Retrieve the phenotype for a paired tumor/normal analysis.