class_docstr: Test functionality of generic converter of unknown configuration file type.
docstr: Test parsing method.
docstr_tok: ["Test","parsing","method","."]
code: def test_parse(self, unknown_type_sample_path, generic_converter):
      """Test parsing method."""
      ret = generic_converter.parse(unknown_type_sample_path)
      assert ret == {
          "lalala": "o~uniform(1, 3, shape=(100, 3))",
          "lala": {
              "la": "o~uniform(1, 3, shape=(100, 3))",
              "l2a": "o~+gaussian(0, 0.1, shape=(100, 3))",
          },
          "": {
              "lala": {
                  "iela": "o~uniform(1, 3, shape=(100, 3))",
                  "": {
                      "iela": "o~uniform(1, 3, shape=(100, 3))",
                  },
              },
          },
          "aaalispera": "o~normal(3, 1)",
          "a": "o~normal(5, 3)",
          "b": "o~>a_serious_name",
          "a_serious_name": "o~-",
          "another_serious_name": "o~loguniform(0.001, 0.5)",
      }
  
      assert (
          generic_converter.template
          == """{lalala!s}
  
  {/lala/la!s}
  {//lala/iela!s}
  {//lala//iela!s}
  
  a:
     b:
      [asdfa~/Iamapath/dont_capture_me,
        ~/Iamapath/dont_capture_me]
  
  yo:
             {aaalispera!s}
  
  [naedw]
  a_var={a!s}
  
  ~
  
  [naekei:naedw]
  other_var = ~
  # Rename it who_names_their_variables_a_seriously
  a_var = {b!s}
  
  {{'oups':
  # remove it
  '{a_serious_name!s}',
  'iela':'{another_serious_name!s}'
  }}
  
  {lala/l2a!s}
  """
      )
  
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 1 for calling the TestGenericConverter obj's underlying member method code with example usage: obj.test_parse(unknown_type_sample_path, generic_converter) without return types