class_docstr: Encapsulates Python frame information.
code: def tree_flatten(self):
      flat_locals, locals_tree = _safe_flatten_dict(self.locals)
      flat_globals, globals_tree = _safe_flatten_dict(self.globals)
      flat_vars = flat_locals + flat_globals
      is_valid = [isinstance(l, core.Tracer) for l in flat_vars]
      invalid_vars, valid_vars = util.partition_list(
          is_valid, flat_vars
      )
      return valid_vars, (
          is_valid,
          invalid_vars,
          locals_tree,
          globals_tree,
          len(flat_locals),
          self.filename,
          self.code_context,
          self.source,
          self.lineno,
          self.offset,
      )
  
imports: from __future__ import annotations
  from collections.abc import Hashable
  import dataclasses
  import inspect
  import threading
  from typing import Any, Protocol
  import jax
  from jax import tree_util
  from jax._src import core
  from jax._src import debugging
  from jax._src import traceback_util
  from jax._src import util
label_desc: Use image node_id 1 for calling the DebuggerFrame obj's underlying member method code with example usage: obj.tree_flatten() and returns: valid_vars,  is_valid,  invalid_vars,  locals_tree,  globals_tree,  len,  self,  self,  self,  self,  self