class_docstr: Test functionality of generic converter of unknown configuration file type.
docstr: Test getting state dict.
docstr_tok: ["Test","getting","state","dict","."]
code: def test_get_state_dict(
      self,
      unknown_type_sample_path,
      unknown_type_template_path,
      generic_converter,
  ):
      """Test getting state dict."""
      generic_converter.parse(unknown_type_sample_path)
      assert generic_converter.get_state_dict() == {
          "expression_prefix": "o~",
          "has_leading": {
              "/lala//iela": "/",
              "/lala/iela": "/",
              "lala/la": "/",
          },
          "regex": "([\\/]?[\\w|\\/|-]+)~([\\+]?.*\\)|\\-|\\>[A-Za-z_]\\w*)",
          "template": open(unknown_type_template_path).read(),
      }
  
file_path: orion/tests/unittests/core/io/test_converters.py
imports: import os
  import pytest
  from orion.core.io.convert import GenericConverter, JSONConverter, YAMLConverter, infer_converter_from_file_type
label_desc: Use image node_id 7 for calling the TestGenericConverter obj's underlying member method code with example usage: obj.test_get_state_dict(unknown_type_sample_path, unknown_type_template_path, generic_converter) without return types