code: def _get_tensor_constant_from_node(node, m):
      if node is None:
          return None
      assert node.op == "get_attr"
      return getattr(m, node.target)
  
imports: import operator
  import types
  import torch
  from torch._export import capture_pre_autograd_graph
  from torch.fx import GraphModule, Node
  from torch.nn.utils.fusion import fuse_conv_bn_weights
  from typing import Any, Callable, Dict, Optional, Tuple, List, Union
  from torch.utils._pytree import LeafSpec
  from torch.ao.quantization.fx._decomposed import quantized_decomposed_lib
  from torch.ao.quantization.quantizer import QuantizationAnnotation
label_desc: Use image node_id 6 for calling a global function with example usage: _get_tensor_constant_from_node(node, m) and returns: getattr, None