code: def _copy_test_attr_to_func_def(
      self, func_def, param_name, attr_value_type
  ):
      test_value = self._test_conversion_params[param_name]
      if attr_value_type == "s":
          byte_value = compat.as_bytes(test_value)
          func_def.attr[param_name].CopyFrom(
              attr_value_pb2.AttrValue(s=byte_value)
          )
      elif attr_value_type == "b":
          func_def.attr[param_name].CopyFrom(
              attr_value_pb2.AttrValue(b=test_value)
          )
      elif attr_value_type == "i":
          func_def.attr[param_name].CopyFrom(
              attr_value_pb2.AttrValue(i=test_value)
          )
      else:
          logging.info(
              "Attr_value type %s is not supported", attr_value_type
          )
  
imports: import itertools
  import os
  from tensorflow.core.framework import attr_value_pb2
  from tensorflow.core.protobuf import saved_model_pb2
  from tensorflow.python.compiler.tensorrt import trt_convert
  from tensorflow.python.compiler.tensorrt.test import tf_trt_integration_test_base
  from tensorflow.python.compiler.tensorrt.test.tf_trt_integration_test_base import GraphState
  from tensorflow.python.compiler.tensorrt.test.tf_trt_integration_test_base import IsQuantizationWithCalibration
  from tensorflow.python.eager import def_function
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import tensor_spec
  from tensorflow.python.lib.io import file_io
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import nn
  from tensorflow.python.ops import nn_ops
  from tensorflow.python.platform import test
  from tensorflow.python.platform import tf_logging
  from tensorflow.python.saved_model import constants
  from tensorflow.python.saved_model import loader_impl
  from tensorflow.python.util import compat
label_desc: Use image node_id 3 for calling the TfFunctionTest obj's underlying member method code with example usage: obj._copy_test_attr_to_func_def(func_def, param_name, attr_value_type) without return types