code: def testMultiScopedKeys(self):
      testFile = """
  foo:
      bar: ["hello", "world"]
      second: [1, 2, 3, 4, 5]
  
  cat:
      bat:
          hat: [[0, 9, -8, -7, -6], [-5, 4, 3, 2]]
      sub: [["lets"], ["see"], ["if"], ["it", "breaks"]]
  
  zat: ["foo"]
  
  john:
      joe:
          jane: 3
  """
      writeFile(testFile, "testfile")
  
      p = YamlInput(filename="testfile")()
      os.remove("testfile")
  
      descNames = sorted(p.descriptorNames())
      self.assertEqualVector(
          descNames,
          [
              "cat.bat.hat",
              "cat.sub",
              "foo.bar",
              "foo.second",
              "john.joe.jane",
              "zat",
          ],
      )
      self.assertEqualVector(p["foo.bar"], ["hello", "world"])
      self.assertAlmostEqualVector(p["foo.second"], [1, 2, 3, 4, 5])
      self.assertAlmostEqualMatrix(
          p["cat.bat.hat"], [[0, 9, -8, -7, -6], [-5, 4, 3, 2]]
      )
      self.assertEqualMatrix(
          p["cat.sub"], [["lets"], ["see"], ["if"], ["it", "breaks"]]
      )
      self.assertEqualMatrix(p["zat"], ["foo"])
      self.assertAlmostEqual(p["john.joe.jane"], 3)
  
      testFile = """
  {
  "foo": 
      {
      "bar": ["hello", "world"],
      "second": [1, 2, 3, 4, 5]
      },
  "cat": 
      {
      "bat": 
          {
          "hat": [[0, 9, -8, -7, -6], [-5, 4, 3, 2]]
          },
      "sub": [["lets"], ["see"], ["if"], ["it", "breaks"]]
      },
  "zat": ["foo"],
  "john":
      {
      "joe":
          {
          "jane": 3
          }
      }
  }
  """
      writeFile(testFile, "testfile")
  
      p = YamlInput(filename="testfile", format="json")()
      os.remove("testfile")
  
      descNames = sorted(p.descriptorNames())
      self.assertEqualVector(
          descNames,
          [
              "cat.bat.hat",
              "cat.sub",
              "foo.bar",
              "foo.second",
              "john.joe.jane",
              "zat",
          ],
      )
      self.assertEqualVector(p["foo.bar"], ["hello", "world"])
      self.assertAlmostEqualVector(p["foo.second"], [1, 2, 3, 4, 5])
      self.assertAlmostEqualMatrix(
          p["cat.bat.hat"], [[0, 9, -8, -7, -6], [-5, 4, 3, 2]]
      )
      self.assertEqualMatrix(
          p["cat.sub"], [["lets"], ["see"], ["if"], ["it", "breaks"]]
      )
      self.assertEqualMatrix(p["zat"], ["foo"])
      self.assertAlmostEqual(p["john.joe.jane"], 3)
  
imports: from essentia_test import *
  import os
label_desc: Use image node_id 8 for calling the TestYamlInput obj's underlying member method code with example usage: obj.testMultiScopedKeys() without return types