code: def __init__(self, fn: types.FunctionType):
      self.fn = _FunctionWithEquality(fn)
      if fn.__closure__ is None:
          contents = None
      else:
          contents = tuple(
              closure_to_pytree(cell.cell_contents)
              for cell in fn.__closure__
          )
      self.contents = contents
  
file_path: equinox/equinox/internal/_closure_to_pytree.py
imports: import inspect
  import types
  from typing import Any, Optional
  import jax.tree_util
  from .._module import Module
label_desc: Use image node_id 1 to create a new _Closure object from inherited base classes: Module with example: obj = _Closure(fn)