code: def get_seconds_from_hms_time(time_str: str) -> float:
      """
      Get Seconds from timestamp of form 'HH:MM:SS'.
  
      Args:
          time_str (str)
  
      Returns:
          float of seconds
  
      """
      for fmt in ("%H:%M:%S.%f", "%H:%M:%S"):
          try:
              time_since_min_time = datetime.datetime.strptime(
                  time_str, fmt
              )
              min_time = datetime.datetime.strptime("", "")
              return float(
                  (time_since_min_time - min_time).total_seconds()
              )
          except ValueError:
              pass
      raise ValueError(
          f"No valid data format found for provided string {time_str}."
      )
  
imports: import datetime
  import os
  from dataclasses import dataclass
  from enum import Enum
  from typing import Dict, Optional, Union
  from pytorchvideo.data.encoded_video import EncodedVideo
  from pytorchvideo.data.frame_video import FrameVideo
  from pytorchvideo.data.utils import DataclassFieldCaster, load_dataclass_dict_from_csv, save_dataclass_objs_to_headered_csv
  from pytorchvideo.data.video import Video
label_desc: Use image node_id 1 for calling a global function with example usage: get_seconds_from_hms_time(time_str) and returns: float