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.string_ or dtype.type == np.unicode_:
          return SlowAppendObjectArrayToTensorProto
      return GetFromNumpyDTypeDict(_NP_TO_APPEND_FN, dtype)
  
imports: import numpy
  from tensorboard.compat.proto import tensor_pb2
  from tensorboard.compat.tensorflow_stub import dtypes, compat, tensor_shape
label_desc: Use image node_id 17 for calling a global function with example usage: GetNumpyAppendFn(dtype) and returns: GetFromNumpyDTypeDict, SlowAppendObjectArrayToTensorProto