code: def test_should_load_resources_with_requirements(self):
      # Given
      required_resources = {
          STOP_WORDS: False,
          CUSTOM_ENTITY_PARSER_USAGE: CustomEntityParserUsage.WITHOUT_STEMS,
          STEMS: False,
          NOISE: True,
          WORD_CLUSTERS: ["brown_clusters"],
          GAZETTEERS: ["top_10000_words"],
      }
  
      # When
      resources = load_resources("en", required_resources)
  
      # Then
      self.assertListEqual(
          ["top_10000_words"], list(resources[GAZETTEERS])
      )
      self.assertListEqual(
          ["brown_clusters"], list(resources[WORD_CLUSTERS])
      )
      self.assertIsNone(resources[STOP_WORDS])
      self.assertIsNone(resources[STEMS])
      self.assertGreater(len(resources[NOISE]), 0)
  
imports: from __future__ import unicode_literals
  from deprecation import fail_if_not_removed
  from snips_nlu import load_resources
  from snips_nlu.constants import DATA_PATH, STOP_WORDS, CUSTOM_ENTITY_PARSER_USAGE, STEMS, WORD_CLUSTERS, GAZETTEERS, NOISE
  from snips_nlu.entity_parser import CustomEntityParserUsage
  from snips_nlu.resources import MissingResource, _get_resource, load_resources, _persist_stop_words, _load_stop_words, _load_noise, _persist_noise, _load_word_clusters, _persist_word_clusters, _load_gazetteer, _persist_gazetteer, _load_stems, _persist_stems, get_stems
  from snips_nlu.tests.utils import FixtureTest
label_desc: Use image node_id 2 for calling the TestResources obj's underlying member method code with example usage: obj.test_should_load_resources_with_requirements() without return types