code: def test_custom_namespace_selected_correctly(self):
      yaml_config = """
  operators:
    aten::add.int:
      is_used_for_training: No
      is_root_operator: Yes
      include_all_overloads: No
    custom::add:
      is_used_for_training: Yes
      is_root_operator: No
      include_all_overloads: Yes
  """
      selector = SelectiveBuilder.from_yaml_str(yaml_config)
      native_function, _ = NativeFunction.from_yaml(
          {"func": "custom::add() -> Tensor"},
          loc=Location(__file__, 1),
          valid_tags=set(),
      )
      self.assertTrue(
          selector.is_native_function_selected(native_function)
      )
  
file_path: pytorch/tools/test/test_selective_build.py
imports: import unittest
  from torchgen.selective_build.operator import *
  from torchgen.model import Location, NativeFunction
  from torchgen.selective_build.selector import combine_selective_builders, SelectiveBuilder
label_desc: Use image node_id 8 for calling the TestSelectiveBuild obj's underlying member method code with example usage: obj.test_custom_namespace_selected_correctly() without return types