code: def is_gym_version_ge(compare_version):
      # Check whether the version of gym is greater than compare_version
      # get gym version in python env
      version_num = gym.__version__.split(".")
      for i in range(len(version_num)):
          try:
              version_num[i] = int(version_num[i])
          except:
              pass
      # deal with compare_version
      compare_num = compare_version.split(".")
      for i in range(len(version_num)):
          try:
              compare_num[i] = int(compare_num[i])
          except:
              pass
      return operator.ge(version_num, compare_num)
  
file_path: PARL/parl/env/compat_wrappers.py
imports: import gym
  import operator
label_desc: Use image node_id 1 for calling a global function with example usage: is_gym_version_ge(compare_version) and returns: operator