code: def write_test_cpp(cpp_ops: Sequence[str], file_path: str) -> None:
      code = "\n".join(cpp_ops)
      generated = f"""// @lint-ignore-every CLANGTIDY HOWTOEVEN
  // AUTO-GENERATED FROM: torchgen/static_runtime/gen_static_runtime_ops.py
  #include <gtest/gtest.h>
  #include <torch/csrc/jit/runtime/static/impl.h>
  #include <torch/torch.h>
  
  #include "test_utils.h"
  
  using namespace caffe2;
  using namespace torch;
  using namespace torch::jit;
  using namespace torch::jit::test;
  using c10::IValue;
  
  {code}
  
  """
      with open(file_path, "w") as f:
          f.write(generated)
      clang_format(file_path)
  
file_path: pytorch/torchgen/static_runtime/gen_static_runtime_ops.py
imports: import argparse
  import itertools
  import os
  from typing import Sequence, TypeVar, Union
  from libfb.py.log import set_simple_logging
  from torchgen import gen
  from torchgen.context import native_function_manager
  from torchgen.model import DispatchKey, NativeFunctionsGroup, NativeFunctionsViewGroup
  from torchgen.static_runtime import config, generator
label_desc: Use image node_id 4 for calling a global function with example usage: write_test_cpp(cpp_ops, file_path) without return types