code: def get_basename(path: tf.string) -> tf.string:
      if not isinstance(path, tf.Tensor):
          raise AssertionError
      return tf.strings.split(path, os.path.sep)[-1]
  
imports: import os
  import tensorflow
label_desc: Use image node_id 2 for calling a global function with example usage: get_basename(path) and returns: tf