code: def testBuildGraphFn_NonExistingResultNode(self):
      input_graph = self.parse_input_graph(
          """
        nodes {
          key: "input_1"
          value {
            input_node {
              input_key: "x"
            }
            output_data_type: ARTIFACT_LIST
          }
        }
        result_node: "meh"
      """
      )
  
      with self.assertRaisesRegex(
          exceptions.FailedPreconditionError,
          "result_node meh does not exist",
      ):
          input_graph_resolver.build_graph_fn(
              self._mlmd_handle, input_graph
          )
  
imports: from unittest import mock
  from absl.testing import parameterized
  import tensorflow
  from tfx.dsl.components.common import resolver
  from tfx.dsl.input_resolution import resolver_op
  from tfx.dsl.input_resolution.ops import ops
  from tfx.orchestration.portable.input_resolution import exceptions
  from tfx.orchestration.portable.input_resolution import input_graph_resolver
  from tfx.proto.orchestration import pipeline_pb2
  from tfx.types import standard_artifacts
  from google.protobuf import text_format
label_desc: Use image node_id 7 for calling the InputGraphResolverTest obj's underlying member method code with example usage: obj.testBuildGraphFn_NonExistingResultNode() without return types