code: def copy_parameters(
      net_source: mx.gluon.Block,
      net_dest: mx.gluon.Block,
      ignore_extra: bool = False,
      allow_missing: bool = False,
  ) -> None:
      """
      Copies parameters from one network to another.
  
      Parameters
      ----------
      net_source
          Input network.
      net_dest
          Output network.
      ignore_extra
          Whether to ignore parameters from the source that are not
          present in the target.
      allow_missing
          Whether to allow additional parameters in the target not
          present in the source.
      """
      with tempfile.TemporaryDirectory(
          prefix="gluonts-estimator-temp-"
      ) as model_dir:
          model_dir_path = str(Path(model_dir) / "tmp_model")
          net_source.save_parameters(model_dir_path)
          net_dest.load_parameters(
              model_dir_path,
              ctx=mx.current_context(),
              allow_missing=allow_missing,
              ignore_extra=ignore_extra,
          )
  
imports: import inspect
  import tempfile
  from pathlib import Path
  from typing import List, Optional, Tuple, cast, Type
  import mxnet
  from mxnet.gluon.block import _flatten
  from gluonts.core.serde import dump_json, load_json
  from gluonts.mx import Tensor
label_desc: Use image node_id 2 for calling a global function with example usage: copy_parameters(net_source, net_dest, ignore_extra, allow_missing) without return types