code: def is_version_greater_than(ver):
      """
      Returns True if the local PyTorch version is greater
      than the one given as an argument.
      """
      import torch
      from distutils.version import LooseVersion
  
      torch_ver = torch.__version__
      # PT version numbers can include +cu[cuda version code]
      # and we don't want to include that in the comparison
      if "+cu" in torch_ver:
          torch_ver = torch_ver.split("+cu")[0]
  
      return LooseVersion(torch_ver) > ver
  
imports: from ..None import expr
  from ..None import op
  from ..dataflow_pattern import wildcard, is_constant, is_op, rewrite, is_tuple, is_tuple_get_item, is_if, DFPatternCallback
label_desc: Use image node_id 1 for calling a global function with example usage: is_version_greater_than(ver) and returns: unknown