code: def store_expected_values(request):
      """
      Stores expected values to be retrieved by the expected_values fixture
      Note1: Numpy arrays MUST be converted to list before being stored as json
      Note2: It's possible to store both a framework independent and framework specific value. If both are stored the
      framework specific value will be used
      :param request:
      :return:
      """
  
      def _store_expected_values(values_to_store, framework=""):
          framework_name = framework
          if framework_name:
              framework_name = "_" + framework_name
  
          file_name = (
              request.node.location[0].split("/")[-1][:-3] + ".json"
          )
  
          try:
              with open(
                  os.path.join(
                      os.path.dirname(__file__),
                      os.path.dirname(request.node.location[0]),
                      file_name,
                  ),
                  "r",
              ) as f:
                  expected_values = json.load(f)
          except FileNotFoundError:
              expected_values = {}
  
          test_name = request.node.name + framework_name
          expected_values[test_name] = values_to_store
  
          with open(
              os.path.join(
                  os.path.dirname(__file__),
                  os.path.dirname(request.node.location[0]),
                  file_name,
              ),
              "w",
          ) as f:
              json.dump(expected_values, f, indent=4)
  
      return _store_expected_values
  
imports: import importlib
  import json
  import logging
  import os
  import shutil
  import tempfile
  from typing import Dict, List, TYPE_CHECKING, Union
  import warnings
  import numpy
  import pytest
  import requests
  from art.data_generators import KerasDataGenerator, MXDataGenerator, PyTorchDataGenerator, TensorFlowDataGenerator, TensorFlowV2DataGenerator
  from art.defences.preprocessor import FeatureSqueezing, JpegCompression, SpatialSmoothing
  from art.estimators.classification import KerasClassifier
  from tests.utils import ARTTestFixtureNotImplemented, get_attack_classifier_pt, get_image_classifier_kr, get_image_classifier_kr_functional, get_image_classifier_kr_tf, get_image_classifier_kr_tf_functional, get_image_classifier_kr_tf_with_wildcard, get_image_classifier_mxnet_custom_ini, get_image_classifier_pt, get_image_classifier_pt_functional, get_image_classifier_tf, get_image_classifier_hf, get_image_gan_tf_v2, get_image_generator_tf_v2, get_tabular_classifier_kr, get_tabular_classifier_pt, get_tabular_classifier_scikit_list, get_tabular_classifier_tf, load_dataset, master_seed
label_desc: Use image node_id 9 for calling a global function with example usage: store_expected_values(request) and returns: _store_expected_values