code: def _cycliclrloader(obj, path, end_of_epoch):
      del end_of_epoch  # Unused
      device = "cpu"
      state_dict = torch.load(path, map_location=device)
      if state_dict.get("_scale_fn_ref") == WEAKREF_MARKER:
          if not isinstance(obj._scale_fn_ref, weakref.WeakMethod):
              MSG = "Loading CyclicLR scheduler and the _scale_ref_fn did not exist in instance."
              MSG += " You did not construct it with the same parameters it was created!"
              MSG += " Looks like you changed the scale function!"
              MSG += " If this was not intentional, the scheduler might not work correctly."
              warnings.warn(MSG)
      try:
          obj.load_state_dict(
              torch.load(path, map_location=device), strict=True
          )
      except TypeError:
          obj.load_state_dict(torch.load(path, map_location=device))
  
imports: import torch
  import weakref
  import warnings
label_desc: Use image node_id 2 for calling a global function with example usage: _cycliclrloader(obj, path, end_of_epoch) without return types