code: def GetNumpyAppendFn(dtype):
      # numpy dtype for strings are variable length. We can not compare
      # dtype with a single constant (np.string does not exist) to decide
      # dtype is a "string" type. We need to compare the dtype.type to be
      # sure it's a string type.
      if dtype.type == np.bytes_ or dtype.type == np.str_:
          if _FAST_TENSOR_UTIL_AVAILABLE:
              return fast_tensor_util.AppendObjectArrayToTensorProto
          else:
              return SlowAppendObjectArrayToTensorProto
      return GetFromNumpyDTypeDict(_NP_TO_APPEND_FN, dtype)
  
imports: import typing
  from typing import Protocol
  import numpy
  from tensorflow.core.framework import tensor_pb2
  from tensorflow.core.framework import tensor_shape_pb2
  from tensorflow.python.client import pywrap_tf_session
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import errors_impl
  from tensorflow.python.framework import tensor_shape
  from tensorflow.python.types import core
  from tensorflow.python.types import internal
  from tensorflow.python.util import compat
  from tensorflow.python.util import nest
  from tensorflow.python.util.tf_export import tf_export
label_desc: Use image node_id 14 for calling a global function with example usage: GetNumpyAppendFn(dtype) and returns: GetFromNumpyDTypeDict, fast_tensor_util, SlowAppendObjectArrayToTensorProto