code: def _patch_model_io():
      if PatchLIGHTgbmModelIO.__patched:
          return
  
      if "lightgbm" not in sys.modules:
          return
      PatchLIGHTgbmModelIO.__patched = True
      # noinspection PyBroadException
      try:
          import lightgbm as lgb  # noqa
  
          lgb.Booster.save_model = _patched_call(
              lgb.Booster.save_model, PatchLIGHTgbmModelIO._save
          )
          lgb.train = _patched_call(
              lgb.train, PatchLIGHTgbmModelIO._train
          )
          lgb.Booster = _patched_call(
              lgb.Booster, PatchLIGHTgbmModelIO._load
          )
      except ImportError:
          pass
      except Exception:
          pass
  
file_path: clearml/clearml/binding/frameworks/lightgbm_bind.py
imports: import sys
  import six
  from pathlib2 import Path
  from ..frameworks.base_bind import PatchBaseModelIO
  from ..frameworks import _patched_call, WeightsFileHandler, _Empty
  from ..import_bind import PostImportHookPatching
  from ...config import running_remotely
  from ...model import Framework
label_desc: Use image node_id 2 for calling the PatchLIGHTgbmModelIO obj's underlying member method code with example usage: obj._patch_model_io() without return types