code: def _repr_fn(fields, globals):
      fn = _create_fn(
          "__repr__",
          ("self",),
          [
              'return f"{self.__class__.__qualname__}('
              + ", ".join(
                  [f"{f.name}={{self.{f.name}!r}}" for f in fields]
              )
              + ')"'
          ],
          globals=globals,
      )
      return _recursive_repr(fn)
  
imports: import re
  import sys
  import copy
  import types
  import inspect
  import keyword
  import functools
  import itertools
  import abc
  import _thread
  from types import FunctionType, GenericAlias
label_desc: Use image node_id 10 for calling a global function with example usage: _repr_fn(fields, globals) and returns: _recursive_repr