code: def compare(version1, version2, operator):
      version1 = version.parse(version1)
      version2 = version.parse(version2)
      if operator == "==":
          return version1 == version2
      elif "<" in operator:
          if operator == "<=":
              return version1 <= version2
          return version1 < version2
      else:
          if operator == ">=":
              return version1 >= version2
          return version1 > version2
  
file_path: ivy/scripts/test_dependencies.py
imports: import os
  import argparse
  import termcolor
  import importlib
  import faulthandler
  from packaging import version
label_desc: Use image node_id 2 for calling a global function with example usage: compare(version1, version2, operator) and returns: unknown, unknown, unknown, unknown, unknown