title: How to use importlib.resources.path(package, resource)?
body: <p>I'm creating a _GeneratorContextManager with the following code.</p>
  
  <pre><code>try:
      import importlib.resources as pkg_resources
  except ImportError:
      # Try backported to PY&lt;37 `importlib_resources`.
      import importlib_resources as pkg_resources
  from . import file_resources
  
  package_path= pkg_resources.path(file_resources, "IWNLP.Lemmatizer_20181001.json")
  </code></pre>
  
  <p>Here is the debugger view of the variable package_path.</p>
  
  <p><a href="https://i.stack.imgur.com/08eel.png" rel="noreferrer"><img src="https://i.stack.imgur.com/08eel.png" alt="debugger view of variable package_path"></a></p>
  
  <p>Now I want to pass the path of the file "IWNLP.Lemmatizer_20181001.json" to another function:</p>
  
  <pre><code> lemmatizer = IWNLPWrapper(lemmatizer_path=package_path)
  </code></pre>
  
  <p>The documentation says "The context manager provides a pathlib.Path object". How can I access the pathlib.Path object?</p>