code: def version_leq(lhs: str, rhs: str) -> bool:
      """
      Returns True if version `lhs` is earlier or equal to `rhs`.
  
      Args:
          lhs: version name to compare with `rhs`, return True if earlier or equal to `rhs`.
          rhs: version name to compare with `lhs`, return True if later or equal to `lhs`.
  
      """
  
      lhs, rhs = str(lhs), str(rhs)
      pkging, has_ver = optional_import(
          "pkg_resources", name="packaging"
      )
      if has_ver:
          try:
              return cast(
                  bool,
                  pkging.version.Version(lhs)
                  <= pkging.version.Version(rhs),
              )
          except pkging.version.InvalidVersion:
              return True
  
      lhs_, rhs_ = parse_version_strs(lhs, rhs)
      for l, r in zip(lhs_, rhs_):
          if l != r:
              if isinstance(l, int) and isinstance(r, int):
                  return l < r
              return f"{l}" < f"{r}"
  
      return True
  
imports: from __future__ import annotations
  import enum
  import functools
  import os
  import pdb
  import re
  import sys
  import warnings
  from collections.abc import Callable, Collection, Hashable, Mapping
  from functools import partial, wraps
  from importlib import import_module
  from pkgutil import walk_packages
  from pydoc import locate
  from re import match
  from types import FunctionType, ModuleType
  from typing import Any, Iterable, cast
  import torch
label_desc: Use image node_id 14 for calling a global function with example usage: version_leq(lhs, rhs) and returns: True, cast, unknown, True, unknown