code: def _typeddict_new(cls, _typename, _fields=None, **kwargs):
      total = kwargs.pop("total", True)
      if _fields is None:
          _fields = kwargs
      elif kwargs:
          raise TypeError(
              "TypedDict takes either a dict or keyword arguments,"
              " but not both"
          )
  
      ns = {"__annotations__": dict(_fields), "__total__": total}
      try:
          # Setting correct module is necessary to make typed dict classes pickleable.
          ns["__module__"] = sys._getframe(1).f_globals.get(
              "__name__", "__main__"
          )
      except (AttributeError, ValueError):
          pass
  
      return _TypedDictMeta(_typename, (), ns)
  
imports: from typing import Any
  import sys
  from typing import _type_check
label_desc: Use image node_id 3 for calling a global function with example usage: _typeddict_new(cls, _typename, _fields) and returns: _TypedDictMeta