code: def get_fresh_mod(mod_name=__name__):
      # Get this module, with warning registry empty
      my_mod = sys.modules[mod_name]
      try:
          my_mod.__warningregistry__.clear()
      except AttributeError:
          pass
      return my_mod
  
imports: from __future__ import annotations
  import os
  import re
  import sys
  import typing
  import unittest
  import warnings
  from contextlib import nullcontext
  from itertools import zip_longest
  import numpy
  import pytest
  from numpy.testing import assert_array_equal
  from .helpers import assert_data_similar, bytesio_filemap, bytesio_round_trip
  from .np_features import memmap_after_ufunc
label_desc: Use image node_id 6 for calling a global function with example usage: get_fresh_mod(mod_name) and returns: my_mod