code: def tryDynMod(name):
      '''
      Dynamically import a python module or exception.
      '''
      try:
          return importlib.import_module(name)
      except ModuleNotFoundError:
          raise s_exc.NoSuchDyn(name=namef tryDynMod(name):
      '''
      Dynamically import a python module or exception.
      '''
      try:
          return importlib.import_module(name)
      except ModuleNotFoundError:
          raise s_exc.NoSuchDyn(name=name)
docs: Dynamically import a python module or exception.