code: def from_string(prjs):
      """Turn a PROJ.4 string into a mapping of parameters.
  
      Bare parameters like "+no_defs" are given a value of ``True``. All keys
      are checked against the ``all_proj_keys`` list.
      """
      parts = [o.lstrip("+") for o in prjs.strip().split()]
  
      def parse(v):
          try:
              return int(v)
          except ValueError:
              pass
          try:
              return float(v)
          except ValueError:
              return v
  
      items = map(
          lambda kv: len(kv) == 2
          and (kv[0], parse(kv[1]))
          or (kv[0], True),
          (p.split("=") for p in parts),
      )
      return dict((k, v) for k, v in items if k in all_proj_keys)
  
label_desc: Use image node_id 2 for calling a global function with example usage: from_string(prjs) and returns: dict, int, float, v