code: def test_native_function_declaration_1_op_2_ns_error(self) -> None:
      with self.assertRaises(AssertionError):
          get_native_function_declarations(
              grouped_native_functions=[
                  self.op_1_native_function,
                  self.op_2_native_function,
              ],
              backend_indices=self.backend_indices,
              native_function_decl_gen=dest.compute_native_function_declaration,
          )
  
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 2 for calling the TestGenNativeFunctionDeclaration obj's underlying member method code with example usage: obj.test_native_function_declaration_1_op_2_ns_error() without return types