code: def get_shared_data(cls, dataset, parser_usage=None):
      from snips_nlu.entity_parser import (
          BuiltinEntityParser,
          CustomEntityParser,
          CustomEntityParserUsage,
      )
  
      if parser_usage is None:
          parser_usage = CustomEntityParserUsage.WITH_AND_WITHOUT_STEMS
      resources = cls.get_resources(dataset["language"])
      builtin_entity_parser = BuiltinEntityParser.build(dataset)
      custom_entity_parser = CustomEntityParser.build(
          dataset, parser_usage, resources
      )
      return {
          "resources": resources,
          "builtin_entity_parser": builtin_entity_parser,
          "custom_entity_parser": custom_entity_parser,
          "random_state": 1,
      }
  
imports: from __future__ import unicode_literals
  import json
  import shutil
  import sys
  import tempfile
  import traceback
  from builtins import object
  from contextlib import contextmanager
  from pathlib import Path
  from unittest import TestCase
  from snips_nlu.common.utils import json_string, unicode_string
  from snips_nlu.entity_parser.entity_parser import EntityParser
  from snips_nlu.intent_classifier import IntentClassifier
  from snips_nlu.intent_parser import IntentParser
  from snips_nlu.resources import load_resources
  from snips_nlu.result import empty_result
  from snips_nlu.slot_filler import SlotFiller
label_desc: Use image node_id 2 for calling the SnipsTest obj's underlying member method code with example usage: obj.get_shared_data(cls, dataset, parser_usage) and returns: dict