code: def goassoc_fieldmap(relationship_type=ACTS_UPSTREAM_OF_OR_WITHIN):
      
      return {
          M.SUBJECT: 'bioentity',
          M.SUBJECT_CLOSURE: 'bioentity',
          ## In the GO AmiGO instance, the type field is not correctly populated
          ## See above in the code for hack that restores this for planteome instance
          ## M.SUBJECT_CATEGORY: 'type',
          M.SUBJECT_CATEGORY: None,
          M.SUBJECT_LABEL: 'bioentity_label',
          M.SUBJECT_TAXON: 'taxon',
          M.SUBJECT_TAXON_LABEL: 'taxon_label',
          M.SUBJECT_TAXON_CLOSURE: 'taxon_closure',
          M.RELATION: 'qualifier',
          M.OBJECT: 'annotation_class',
          M.OBJECT_CLOSURE: REGULATES_CLOSURE if relationship_type == ACTS_UPSTREAM_OF_OR_WITHIN else ISA_PARTOF_CLOSURE,
          M.OBJECT_LABEL: 'annotation_class_label',
          M.OBJECT_TAXON: 'object_taxon',
          M.OBJECT_TAXON_LABEL: 'object_taxon_label',
          M.OBJECT_TAXON_CLOSURE: 'object_taxon_closure',
          M.OBJECT_CATEGORY: None,
          M.EVIDENCE_OBJECT_CLOSURE: 'evidence_subset_closure',
          M.IS_DEFINED_BY: 'assigned_by'
      }
docs: Returns a mapping of canonical monarch fields to amigo-golr.
  
      See: https://github.com/geneontology/amigo/blob/master/metadata/ann-config.yaml