code: def field(
      *,
      default: tp.Any = dataclasses.MISSING,
      default_factory: tp.Any = dataclasses.MISSING,
      init: bool = True,
      repr: bool = True,
      hash: tp.Optional[bool] = None,
      compare: bool = True,
      metadata: tp.Optional[tp.Mapping[str, tp.Any]] = None,
  ):
      return dataclasses.field(  # type: ignore
          default=default,
          default_factory=default_factory,
          init=init,
          repr=repr,
          hash=hash,
          compare=compare,
          metadata=metadata,
      )
  
file_path: flax/flax/experimental/nnx/nnx/dataclasses.py
imports: import dataclasses
  import typing
  import typing_extensions
  from flax.experimental import nnx
  from flax.experimental.nnx.nnx import pytreelib, variables
label_desc: Use image node_id 1 for calling a global function with example usage: field() and returns: dataclasses