code: def is_torch_optimizer(cls):
      return is_strict_subclass(cls, torch.optim.Optimizer)
  
imports: import inspect
  import torch
label_desc: Use image node_id 2 for calling a global function with example usage: is_torch_optimizer(cls) and returns: is_strict_subclass