code: def test_invalid_image_preprocessing_params(self):
      builder = self._build_nn_with_one_ip_layer()
      image_input_names = ["input1", "input2"]
      with self.assertRaises(ValueError):
          image_scale = {"invalid": 1.0 / 255.0}
          builder.set_pre_processing_parameters(
              image_input_names=image_input_names,
              image_scale=image_scale,
          )
      with self.assertRaises(ValueError):
          red_bias = {"invalid": -1}
          builder.set_pre_processing_parameters(
              image_input_names=image_input_names, red_bias=red_bias
          )
      with self.assertRaises(ValueError):
          blue_bias = {"invalid": -1}
          builder.set_pre_processing_parameters(
              image_input_names=image_input_names, blue_bias=blue_bias
          )
      with self.assertRaises(ValueError):
          green_bias = {"invalid": -1}
          builder.set_pre_processing_parameters(
              image_input_names=image_input_names, green_bias=green_bias
          )
      with self.assertRaises(ValueError):
          gray_bias = {"invalid": -1}
          builder.set_pre_processing_parameters(
              image_input_names=image_input_names, gray_bias=gray_bias
          )
      with self.assertRaises(ValueError):
          is_bgr = {"invalid": False}
          builder.set_pre_processing_parameters(
              image_input_names=image_input_names, is_bgr=is_bgr
          )
  
imports: import numpy
  import pytest
  import unittest
  import coremltools
  from coremltools import ComputeUnit
  from coremltools.converters.mil.mil.types.type_mapping import np_val_to_py_type
  from coremltools.models import MLModel, datatypes
  from coremltools.models.neural_network import NeuralNetworkBuilder
  from coremltools.models.neural_network.quantization_utils import _convert_array_to_nbit_quantized_bytes, quantize_weights
  from coremltools.models.utils import _is_macos, _macos_version
label_desc: Use image node_id 7 for calling the BasicNumericCorrectnessTest obj's underlying member method code with example usage: obj.test_invalid_image_preprocessing_params() without return types