docstr: Tests that non-primitives (numpy, lambda fn) get replaced by a reference.
docstr_tok: ["Tests","that","non-primitives","(","numpy",",","lambda","fn",")","get","replaced","by","a","reference","."]
code: def _testNonSearchSpaceRef(self, value):
      """Tests that non-primitives (numpy, lambda fn) get replaced by a reference."""
      config = {"param": tune.choice([value, "other", value])}
  
      replaced = create_resolvers_map()
      config = inject_placeholders(config, replaced)
  
      self.assertEqual(
          config["param"].categories,
          [
              (_RefResolver.TOKEN, "ab9affa5"),
              "other",
              (_RefResolver.TOKEN, "ceae296d"),
          ],
      )
  
imports: import numpy
  import unittest
  from ray import tune
  from ray.tune.impl.placeholder import inject_placeholders, resolve_placeholders, create_resolvers_map, _FunctionResolver, _RefResolver
  from ray.tune.search.sample import Float, Integer
label_desc: Use image node_id 4 for calling the PlaceholderTest obj's underlying member method code with example usage: obj._testNonSearchSpaceRef(value) without return types