code: def testNotReplaced(self):
      config = {
          "param1": "ok",
          "param2": ["not ok", tune.grid_search(["ok", "not ok"])],
          "param3": {
              "param4": tune.choice(["ok", "not ok"]),
          },
      }
  
      replaced = create_resolvers_map()
      config = inject_placeholders(config, replaced)
  
      # Primitive typed choices are not replaced.
      self.assertEqual(
          config["param2"][1]["grid_search"], ["ok", "not ok"]
      )
      self.assertEqual(
          config["param3"]["param4"].categories, ["ok", "not ok"]
      )
  
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 1 for calling the PlaceholderTest obj's underlying member method code with example usage: obj.testNotReplaced() without return types