code: def replace_attr(obj, name: str, value):
      torch_attr = getattr(obj, name)
      setattr(obj, name, value)
      attrs.append((obj, name, torch_attr))
  
imports: import os
  import torch
  from logging import warning
  from bigdl.nano.utils.pytorch import TORCH_VERSION_LESS_1_10
label_desc: Use image node_id 1 for calling a global function with example usage: replace_attr(obj, name, value) without return types