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]
  
file_path: chitra/chitra/core.py
imports: import os
  import pathlib
  from typing import Optional, Tuple
  import requests
  import tensorflow
  from chitra.constants import IMAGENET_LABEL_URL
  from chitra.logging import logger
label_desc: Use image node_id 2 for calling a global function with example usage: get_basename(path) and returns: tf