code: def test_getdata_filesys(self):
      pkg = "test_getdata_filesys"
  
      # Include a LF and a CRLF, to test that binary data is read back
      RESOURCE_DATA = b"Hello, world!\nSecond line\r\nThird line"
  
      # Make a package with some resources
      package_dir = os.path.join(self.dirname, pkg)
      os.mkdir(package_dir)
      # Empty init.py
      f = open(os.path.join(package_dir, "__init__.py"), "wb")
      f.close()
      # Resource files, res.txt, sub/res.txt
      f = open(os.path.join(package_dir, "res.txt"), "wb")
      f.write(RESOURCE_DATA)
      f.close()
      os.mkdir(os.path.join(package_dir, "sub"))
      f = open(os.path.join(package_dir, "sub", "res.txt"), "wb")
      f.write(RESOURCE_DATA)
      f.close()
  
      # Check we can read the resources
      res1 = pkgutil.get_data(pkg, "res.txt")
      self.assertEqual(res1, RESOURCE_DATA)
      res2 = pkgutil.get_data(pkg, "sub/res.txt")
      self.assertEqual(res2, RESOURCE_DATA)
  
      del sys.modules[pkg]
  
imports: from pathlib import Path
  from test.support.import_helper import unload, CleanImport
  from test.support.warnings_helper import check_warnings, ignore_warnings
  import unittest
  import sys
  import importlib
  from importlib.util import spec_from_file_location
  import pkgutil
  import os
  import os.path
  import tempfile
  import shutil
  import zipfile
label_desc: Use image node_id 3 for calling the PkgutilTests obj's underlying member method code with example usage: obj.test_getdata_filesys() without return types