code: def expand_mapping_target(namespaces, val):
      
  
      vals = [v.strip() for v in val.split(',')]
      ret = []
      for v in vals:
          inverse = False
          if v.startswith('^'):
              inverse = True
              v = v[1:]
          ret.append((expand_curielike(namespaces, v), inverse))
      return ret
docs: Expand a mapping target, expressed as a comma-separated list of
      CURIE-like strings potentially prefixed with ^ to express inverse
      properties, into a list of (uri, inverse) tuples, where uri is a URIRef
      and inverse is a boolean.