code: def convert_to_seconds(time):
      """Will convert any time into seconds.
  
      If the type of `time` is not valid,
      it's returned as is.
  
      Here are the accepted formats:
  
      >>> convert_to_seconds(15.4)   # seconds
      15.4
      >>> convert_to_seconds((1, 21.5))   # (min,sec)
      81.5
      >>> convert_to_seconds((1, 1, 2))   # (hr, min, sec)
      3662
      >>> convert_to_seconds('01:01:33.045')
      3693.045
      >>> convert_to_seconds('01:01:33,5')    # coma works too
      3693.5
      >>> convert_to_seconds('1:33,5')    # only minutes and secs
      99.5
      >>> convert_to_seconds('33.5')      # only secs
      33.5
      """
      factors = (1, 60, 3600)
  
      if isinstance(time, str):
          time = [
              float(part.replace(",", ".")) for part in time.split(":")
          ]
  
      if not isinstance(time, (tuple, list)):
          return time
  
      return sum(
          mult * part for mult, part in zip(factors, reversed(time))
      )
  
file_path: moviepy/moviepy/tools.py
imports: import os
  import subprocess
  import warnings
  import proglog
label_desc: Use image node_id 3 for calling a global function with example usage: convert_to_seconds(time) and returns: sum, time