class_docstr: Test that the configuration class works as expected
class_docstr_tok: ["Test","that","the","configuration","class","works","as","expected"]
docstr: Test getting items.
docstr_tok: ["Test","getting","items","."]
code: def test_get_item(self, default_config):
      """Test getting items."""
      # get existing options
      assert default_config["main.shots"] == 1000
      assert default_config["main"]["shots"] == 1000
      assert default_config["strawberryfields.global.hbar"] == 1
      assert default_config["strawberryfields.global"]["hbar"] == 1
  
      # get nested dictionaries
      assert default_config["strawberryfields.fock"] == {
          "cutoff_dim": 10
      }
  
      # get key that doesn't exist
      assert default_config["qiskit.ibmq.idonotexist"] == {}
  
imports: import os
  import pytest
  import toml
  import pennylane
  from pennylane import Configuration
label_desc: Use image node_id 1 for calling the TestProperties obj's underlying member method code with example usage: obj.test_get_item(default_config) without return types