docstr: Without any parameter, files() will infer the location as the caller.
docstr_tok: ["Without","any","parameter",",","files","(",")","will","infer","the","location","as","the","caller","."]
code: def test_implicit_files(self):
      """
      Without any parameter, files() will infer the location as the caller.
      """
      spec = {
          "somepkg": {
              "__init__.py": textwrap.dedent(
                  """
                      import importlib.resources as res
                      val = res.files().joinpath('res.txt').read_text(encoding='utf-8')
                      """
              ),
              "res.txt": "resources are the best",
          },
      }
      _path.build(spec, self.site_dir)
      assert (
          importlib.import_module("somepkg").val
          == "resources are the best"
      )
  
imports: import typing
  import textwrap
  import unittest
  import warnings
  import importlib
  import contextlib
  from importlib import resources
  from importlib.resources.abc import Traversable
  from .None import data01
  from .None import util
  from .None import _path
  from test.support import os_helper
  from test.support import import_helper
label_desc: Use image node_id 1 for calling the ImplicitContextFilesTests obj's underlying member method code with example usage: obj.test_implicit_files() without return types