code: def _compare_versions(op, got_ver, want_ver, requirement, pkg, hint):
      if got_ver is None:
          raise ValueError("got_ver is None")
      if want_ver is None:
          raise ValueError("want_ver is None")
      if not ops[op](version.parse(got_ver), version.parse(want_ver)):
          raise ImportError(
              f"{requirement} is required for a normal functioning of this module, but found {pkg}=={got_ver}.{hint}"
          )
  
imports: import operator
  import re
  import sys
  from typing import Optional
  from packaging import version
label_desc: Use image node_id 1 for calling a global function with example usage: _compare_versions(op, got_ver, want_ver, requirement, pkg, hint) without return types