code: def _python_type_to_schema_type(p):
      if p == "str":
          dtype = "string"
      elif p == "int" or p == "float":
          dtype = "number"
      elif p in {
          "typing.List[str]",
          "typing.Tuple[str]",
          "list",
          "tuple",
      }:
          dtype = "array"
      elif p == "bool":
          dtype = "boolean"
      elif p == "dict":
          dtype = "object"
      else:
          dtype = "null"
          # raise TypeError(f'{p} is not supported')
  
      return dtype
  
label_desc: Use image node_id 1 for calling a global function with example usage: _python_type_to_schema_type(p) and returns: dtype