code: def _check_for_tracers(x):
      for leaf in tree_util.tree_leaves(x):
          if isinstance(x, core.Tracer):
              msg = (
                  "Found a JAX Tracer object passed as an argument to a"
                  "custom_partitioning function in a position indicated as static by"
                  "static_argnums. "
              )
              raise UnexpectedTracerError(msg)
  
imports: from __future__ import annotations
  import inspect
  from typing import Optional
  import weakref
  import jax
  from jax._src import core
  from jax import tree_util
  from jax._src import linear_util
  from jax._src import sharding_impls
  from jax.errors import UnexpectedTracerError
  from jax._src import mesh
  from jax._src import dispatch
  from jax._src.lib.mlir.dialects import hlo
  from jax._src.lib.mlir import ir
  from jax._src.interpreters import mlir
  from jax._src.interpreters import partial_eval
  from jax._src.sharding_impls import _op_sharding_to_pos_sharding
  from jax._src import custom_api_util
  from jax._src.lib import xla_client
  from jax._src.api_util import flatten_fun_nokwargs, argnums_partial
label_desc: Use image node_id 12 for calling a global function with example usage: _check_for_tracers(x) without return types