code: def setUp(self) -> None:
      (
          self.op_1_native_function,
          op_1_backend_index,
      ) = NativeFunction.from_yaml(
          {"func": "op_1() -> bool", "dispatch": {"CPU": "kernel_1"}},
          loc=torchgen.model.Location(__file__, 1),
          valid_tags=set(),
      )
      (
          self.op_2_native_function,
          op_2_backend_index,
      ) = NativeFunction.from_yaml(
          {
              "func": "op_2() -> bool",
              "dispatch": {
                  "CPU": "kernel_2",
                  "QuantizedCPU": "custom::kernel_3",
              },
          },
          loc=torchgen.model.Location(__file__, 1),
          valid_tags=set(),
      )
  
      backend_indices: Dict[
          DispatchKey, Dict[OperatorName, BackendMetadata]
      ] = {
          DispatchKey.CPU: {},
          DispatchKey.QuantizedCPU: {},
      }
      BackendIndex.grow_index(backend_indices, op_1_backend_index)
      BackendIndex.grow_index(backend_indices, op_2_backend_index)
      self.backend_indices = {
          k: BackendIndex(
              dispatch_key=k,
              use_out_as_primary=True,
              external=False,
              device_guard=False,
              index=backend_indices[k],
          )
          for k in backend_indices
      }
  
imports: import dataclasses
  import typing
  import unittest
  from collections import defaultdict
  from typing import Dict, List
  import torchgen.model
  import yaml
  from tools.autograd import gen_autograd_functions, load_derivatives
  from torchgen import dest
  from torchgen.api.types import CppSignatureGroup, DispatcherSignature
  from torchgen.context import native_function_manager
  from torchgen.gen import get_native_function_declarations, get_native_function_schema_registrations, LineLoader, static_dispatch
  from torchgen.model import BackendIndex, BackendMetadata, DispatchKey, Location, NativeFunction, OperatorName
  from torchgen.native_function_generation import add_generated_native_functions
  from torchgen.selective_build.selector import SelectiveBuilder
label_desc: Use image node_id 1 for calling the TestGenNativeFunctionDeclaration obj's underlying member method code with example usage: obj.setUp() without return types