code: def clean_clone(x):
      """Remove scopes and tracers from children."""
      if isinstance(x, Module):
          object.__setattr__(
              x,
              "children",
              {k: clean_clone(v) for k, v in x.children.items()},
          )
          object.__setattr__(x, "scope", None)
      return x
  
imports: import dataclasses
  import functools
  import inspect
  from typing import Any, Callable, Dict, Iterable, Mapping, Optional, Sequence, Tuple, Type, TypeVar, Union
  from flax import errors, struct, traceback_util
  from flax.core import Scope, lift, meta
  from flax.core.frozen_dict import FrozenDict
  from flax.linen import module
  from flax.linen.module import Module, Variable, _derive_profiling_name, _get_unbound_fn, wrap_method_once
  import jax
label_desc: Use image node_id 1 for calling a global function with example usage: clean_clone(x) and returns: x