def METHOD_NAME(inputs, outputs, name=None):
  input_info = {
      input_name: tf.compat.v1.saved_model.utils.build_tensor_info(tensor)
      for input_name, tensor in inputs.items()
  }
  output_info = {
      output_name: tf.compat.v1.saved_model.utils.build_tensor_info(tensor)
      for output_name, tensor in outputs.items()
  }
  return tf.compat.v1.saved_model.signature_def_utils.build_signature_def(
      input_info, output_info, name)