code: def test_remove_keys_from_params(self):
      filename = (
          self.FIXTURES_ROOT / "simple_tagger" / "experiment.json"
      )
      params = Params.from_file(filename)
  
      assert params["data_loader"]["batch_sampler"]["type"] == "bucket"
      assert params["data_loader"]["batch_sampler"]["batch_size"] == 80
  
      remove_keys_from_params(params, keys=["batch_size"])
      assert "batch_size" not in params["data_loader"]["batch_sampler"]
  
      remove_keys_from_params(params, keys=["type", "batch_size"])
      assert "type" not in params["data_loader"]["batch_sampler"]
  
      remove_keys_from_params(params, keys=["data_loader"])
      assert "data_loader" not in params
  
imports: import json
  import os
  import re
  from collections import OrderedDict
  import pytest
  from allennlp.common.checks import ConfigurationError
  from allennlp.common.params import infer_and_cast, Params, remove_keys_from_params, with_overrides
  from allennlp.common.testing import AllenNlpTestCase
label_desc: Use image node_id 16 for calling the TestParams obj's underlying member method code with example usage: obj.test_remove_keys_from_params() without return types