code: def _is_module_class(target: TransformTarget) -> bool:
      return (
          inspect.isclass(target)
          and issubclass(target, Module)
          or (isinstance(target, functools.partial))
          and _is_module_class(target.func)
      )
  
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 8 for calling a global function with example usage: _is_module_class(target) and returns: unknown