docs: def _import_module(self, s):
          """
          Import a module.
          """
          mod = __import__(s)
          parts = s.split('.')
          for part in parts[1:]:
              mod = getattr(mod, part)
          return mod