code: def setUp(self) -> None:
      (
          self.custom_1_native_function,
          custom_1_backend_index,
      ) = NativeFunction.from_yaml(
          {
              "func": "custom_1::op_1() -> bool",
              "dispatch": {"CPU": "kernel_1"},
          },
          loc=Location(__file__, 1),
          valid_tags=set(),
      )
      (
          self.custom_2_native_function,
          custom_2_backend_index,
      ) = NativeFunction.from_yaml(
          {
              "func": "custom_2::op_2() -> bool",
              "dispatch": {"CPU": "kernel_2"},
          },
          loc=Location(__file__, 1),
          valid_tags=set(),
      )
  
      backend_indices: Dict[
          DispatchKey, Dict[OperatorName, BackendMetadata]
      ] = {
          DispatchKey.CPU: {},
          DispatchKey.QuantizedCPU: {},
      }
      BackendIndex.grow_index(backend_indices, custom_1_backend_index)
      BackendIndex.grow_index(backend_indices, custom_2_backend_index)
      self.static_dispatch_idx = [
          BackendIndex(
              dispatch_key=k,
              use_out_as_primary=True,
              external=False,
              device_guard=False,
              index=backend_indices[k],
          )
          for k in backend_indices
      ]
      self.kernel_index = ETKernelIndex.from_backend_indices(
          backend_indices
      )
  
imports: import os
  import tempfile
  import unittest
  from typing import Dict
  import yaml
  from torchgen.executorch.model import ETKernelIndex, ETKernelKey
  from torchgen.gen import LineLoader
  from torchgen.gen_executorch import ComputeCodegenUnboxedKernels, gen_functions_declarations, parse_yaml_files, translate_native_yaml
  from torchgen.model import BackendIndex, BackendMetadata, DispatchKey, Location, NativeFunction, OperatorName
  from torchgen.selective_build.selector import SelectiveBuilder
label_desc: Use image node_id 1 for calling the TestGenFunctionsDeclarations obj's underlying member method code with example usage: obj.setUp() without return types