code: def copy_of(fname):
      # Make a fresh copy of a image stored in a file
      img = load(fname)
      hdr = img.metadata["header"].copy()
      return Image(
          img.get_fdata().copy(), copy(img.coordmap), {"header": hdr}
      )
  
imports: import warnings
  from copy import copy
  import nibabel
  import numpy
  import pytest
  from nibabel.affines import from_matvec
  from nibabel.spatialimages import HeaderDataError
  from numpy.testing import assert_array_equal
  from ...core.api import AffineTransform
  from ...core.api import CoordinateSystem
  from ...core.api import Image
  from ...core.reference.spaces import aligned_csm, mni_csm, scanner_csm, talairach_csm, unknown_csm, unknown_space, vox2mni
  from ...testing import anatfile, funcfile
  from ..files import load
  from ..nibcompat import get_affine, get_header
  from ..nifti_ref import NiftiError, nifti2nipy, nipy2nifti
label_desc: Use image node_id 1 for calling a global function with example usage: copy_of(fname) and returns: Image