code: def __init__(self, mock_fs, mock_resources):
      self._mock_fs = mock_fs
      self._mock_resources = mock_resources
      self._patchers = [
          patch("__res.iter_keys", wraps=self._iter_keys),
          patch("__res.__resource.find", wraps=self._resource_find),
          patch("__res._path_isfile", wraps=self._path_isfile),
          patch("__res._os.listdir", wraps=self._os_listdir),
          patch("__res._os.lstat", wraps=self._os_lstat),
      ]
      for patcher in self._patchers:
          patcher.start()
  
imports: import stat
  import unittest
  import yaml
  from collections import namedtuple
  from unittest.mock import patch
  from parameterized import parameterized
  import __res
label_desc: Use image node_id 1 to create a new ImporterMocks object  with example: obj = ImporterMocks(mock_fs, mock_resources)