code: def unwatch(models=None):
      """Remove pytorch model topology, gradient and parameter hooks.
  
      Args:
          models: (list) Optional list of pytorch models that have had watch called on them
      """
      if models:
          if not isinstance(models, (tuple, list)):
              models = (models,)
          for model in models:
              if not hasattr(model, "_wandb_hook_names"):
                  wandb.termwarn(
                      "%s model has not been watched" % model
                  )
              else:
                  for name in model._wandb_hook_names:
                      wandb.run._torch.unhook(name)
                  delattr(model, "_wandb_hook_names")
                  # TODO: we should also remove recursively model._wandb_watch_called
  
      else:
          wandb.run._torch.unhook_all()
  
imports: import logging
  from typing import Optional
  import wandb
  from .lib import telemetry
label_desc: Use image node_id 2 for calling a global function with example usage: unwatch(models) without return types