code: def mutable_field(mutable_default_value) -> dataclasses.field:
      """Can be used to set the default value in a dataclass
      to a mutable value.
  
      Provides a factory function that returns a copy of the provided argument.
  
      Parameters
      ----------
      mutable_default_value : Any
          The default value to use for the field.
  
      Returns
      -------
      field : `dataclasses.field`
          Set the default value to this value.
  
      Examples
      --------
      >>> from dataclasses import dataclass
      >>> from typing import List
      >>> from greykite.common.python_utils import mutable_field
      >>> @dataclass
      >>> class D:
      >>>     x: List = mutable_field([1, 2, 3])
      >>>
      >>> assert D().x is not D().x
      >>> assert D().x == [1, 2, 3]
      """
      return field(
          default_factory=lambda: copy.deepcopy(mutable_default_value)
      )
  
imports: import copy
  import dataclasses
  import functools
  import math
  import re
  import warnings
  from dataclasses import field
  from typing import List
  import numpy
  import pandas
  from pandas.testing import assert_frame_equal
  from pandas.testing import assert_index_equal
  from pandas.testing import assert_series_equal
label_desc: Use image node_id 14 for calling a global function with example usage: mutable_field(mutable_default_value) and returns: field