code: def test_brute_force_topk_sampler_failed(self):
      with self.assertRaises(ValueError):
          cs_config_builder.brute_force_topk_sampler(
              cs_config_pb2.UNKNOWN
          )
      with self.assertRaises(ValueError):
          cs_config_builder.brute_force_topk_sampler(
              "Unknown type string"
          )
      with self.assertRaises(ValueError):
          cs_config_builder.brute_force_topk_sampler(
              cs_config_pb2.SampleContext()
          )
      with self.assertRaises(ValueError):
          cs_config_builder.brute_force_topk_sampler(999)
  
file_path: neural-structured-learning/research/carls/candidate_sampling/candidate_sampler_config_builder_test.py
imports: from research.carls.candidate_sampling import candidate_sampler_config_builder
  from research.carls.candidate_sampling import candidate_sampler_config_pb2
  import tensorflow
label_desc: Use image node_id 3 for calling the CandidateSamplerConfigBuilderTest obj's underlying member method code with example usage: obj.test_brute_force_topk_sampler_failed() without return types