code: def parse_image_relpath(self, image_relpath: str) -> Tuple[str, int]:
      assert self != _Split.TEST
      dirname, filename = os.path.split(image_relpath)
      class_id = os.path.split(dirname)[-1]
      basename, _ = os.path.splitext(filename)
      actual_index = int(basename.split("_")[-1])
      return class_id, actual_index
  
imports: import csv
  from enum import Enum
  import logging
  import os
  from typing import Callable, List, Optional, Tuple, Union
  import numpy
  from .extended import ExtendedVisionDataset
label_desc: Use image node_id 4 for calling the _Split obj's underlying member method code with example usage: obj.parse_image_relpath(image_relpath) and returns: class_id,  actual_index