code: def get_enumeration(rq, v, endpoint, metadata={}, auth=None):
      
      # glogger.debug("Metadata before processing enums: {}".format(metadata))
      # We only fire the enum filling queries if indicated by the query metadata
      if 'enumerate' not in metadata:
          return None
      enumDict = _getDictWithKey(v, metadata['enumerate'])
      if enumDict:
          return enumDict[v]
      if v in metadata['enumerate']:
          return get_enumeration_sparql(rq, v, endpoint, auth)
      return None
docs: Returns a list of enumerated values for variable 'v' in query 'rq'