code: def run_nnc(ir, inputs, dynamic) -> float:
      try:
          strat = [("DYNAMIC", 10)] if dynamic else [("STATIC", 10)]
          old_strat = torch.jit.set_fusion_strategy(strat)
          with torch.jit.fuser("fuser1"):
              return run_test(ir, inputs)
      finally:
          torch.jit.set_fusion_strategy(old_strat)
  
file_path: pytorch/torch/utils/jit/log_extract.py
imports: from contextlib import contextmanager
  from typing import Any, List, Tuple, cast
  import random
  import torch
  import time
  from torch.utils.benchmark import Timer
label_desc: Use image node_id 9 for calling a global function with example usage: run_nnc(ir, inputs, dynamic) and returns: run_test