code: def set_requires_grad(nets, requires_grad=False):
      if not isinstance(nets, list):
          nets = [nets]
      for net in nets:
          if net is not None:
              for param in net.parameters():
                  param.requires_grad = requires_grad
  
file_path: insightface/recognition/idmmd/utils.py
imports: import os
  import numpy
  import torch
  import torch.nn.functional
label_desc: Use image node_id 8 for calling a global function with example usage: set_requires_grad(nets, requires_grad) without return types