code: def import_gwf_library(library, package=__package__):
      
      # import the frame library here to have any ImportErrors occur early
      try:
          return importlib.import_module('.%s' % library, package=package)
      except ImportError as exc:
          exc.args = ('Cannot import %s frame API: %s' % (library, str(exc)),)
          raise
docs: Utility method to import the relevant timeseries.io.gwf frame API
  
      This is just a wrapper around :meth:`importlib.import_module` with
      a slightly nicer error message