code: def _module_has_activation_post_process(model, fqn_of_module):
      for node in model.graph.nodes:
          # look for an observer whose arg is the target module
          if "activation_post_process" in node.name:
              if node.args[0].target == fqn_of_module:
                  return True
      return False
  
imports: import logging
  import torch
  import torch.ao.quantization
  from torch import nn
  from torch.ao import pruning
  from torch.testing._internal.common_utils import TestCase
  from torch.ao.quantization.quantize_fx import prepare_fx, convert_fx, convert_to_reference_fx, prepare_qat_fx
  from torch.ao.pruning import fqn_to_module
label_desc: Use image node_id 4 for calling a global function with example usage: _module_has_activation_post_process(model, fqn_of_module) and returns: False, True