code: def _get_weight_observer(observer):
      # FakeQuantize observer
      if hasattr(observer, "activation_post_process"):
          observer = observer.activation_post_process
      # UniformQuantizationObserverBase observer
      return observer
  
file_path: pytorch/torch/ao/nn/quantized/modules/utils.py
imports: import abc
  import torch
  import itertools
  import collections
  from torch.nn.modules.module import _addindent
label_desc: Use image node_id 1 for calling a global function with example usage: _get_weight_observer(observer) and returns: observer