code: def hms_to_seconds(hms):
      hour = hms.split(":")[0]
      minute = hms.split(":")[1]
      second = hms.split(":")[2].split(".")[0]
  
      # .xx (10 ms order)
      ms10 = hms.split(":")[2].split(".")[1]
  
      # total seconds
      seconds = int(hour) * 3600 + int(minute) * 60 + int(second)
  
      return "{:07d}".format(int(str(seconds) + ms10))
  
imports: import argparse
  import json
  import logging
  import sys
label_desc: Use image node_id 1 for calling a global function with example usage: hms_to_seconds(hms) and returns: str