code: def test_functional_list_outputs_dict_metrics_invalid_keys(self):
      model = _get_model_multi_outputs_list()
      self.assertIsInstance(model, Functional)
      x = np.random.rand(8, 3)
      y1 = np.random.rand(8, 1)
      y2 = np.random.randint(0, 2, (8, 1))
      model.compile(
          optimizer="sgd",
          loss={
              "output_a": "mean_squared_error",
              "output_b": "binary_crossentropy",
          },
          metrics={
              "output_c": ["mean_squared_error", "accuracy"],
          },
      )
      # Fit the model to make sure compile_metrics are built
      with self.assertRaisesRegex(
          ValueError,
          "In the dict argument `metrics`, "
          "key 'output_c' does not correspond to any model output",
      ):
          model.fit(x, (y1, y2), batch_size=2, epochs=1, verbose=0)
  
imports: import numpy
  import pytest
  from absl.testing import parameterized
  from keras import layers
  from keras import testing
  from keras.layers.core.input_layer import Input
  from keras.models.functional import Functional
  from keras.models.model import Model
  from keras.models.model import model_from_json
label_desc: Use image node_id 15 for calling the ModelTest obj's underlying member method code with example usage: obj.test_functional_list_outputs_dict_metrics_invalid_keys() without return types