code: def _create_serving_spec(payload: Dict[str, Any]):
      result = infra_validator_pb2.ServingSpec()
      json_format.ParseDict(payload, result)
      return result
  
imports: import os
  from typing import Any, Dict
  from unittest import mock
  from kubernetes import client
  from kubernetes.client import rest
  import tensorflow
  from tfx.components.infra_validator import error_types
  from tfx.components.infra_validator import serving_bins
  from tfx.components.infra_validator.model_server_runners import kubernetes_runner
  from tfx.proto import infra_validator_pb2
  from tfx.types import standard_artifacts
  from tfx.utils import kube_utils
  from tfx.utils import path_utils
  from google.protobuf import json_format
label_desc: Use image node_id 1 for calling a global function with example usage: _create_serving_spec(payload) and returns: result