class_docstr: Test functionality of generic converter of unknown configuration file type.
docstr: Check generation of a particular instance of configuration.
docstr_tok: ["Check","generation","of","a","particular","instance","of","configuration","."]
code: def test_generate(
      self, tmpdir, generic_converter, unknown_type_sample_path
  ):
      """Check generation of a particular instance of configuration."""
      generic_converter.parse(unknown_type_sample_path)
  
      output_file = str(tmpdir.join("output.lalal"))
      data = {
          "lalala": "ispi",
          "lala": {
              "la": 5,
              "l2a": "+gaussian(0, 0.1, shape=(100, 3))",
          },
          "": {
              "lala": {
                  "iela": 1,
                  "": {
                      "iela": 2,
                  },
              },
          },
          "aaalispera": 3,
          "a": 4,
          "b": "o~>a_serious_name",
          "a_serious_name": "o~-",
          "another_serious_name": [1, 3],
      }
      generic_converter.generate(output_file, data)
  
      with open(output_file) as f:
          out = f.read()
      assert (
          out
          == """ispi
  
  5
  1
  2
  
  a:
     b:
      [asdfa~/Iamapath/dont_capture_me,
        ~/Iamapath/dont_capture_me]
  
  yo:
             3
  
  [naedw]
  a_var=4
  
  ~
  
  [naekei:naedw]
  other_var = ~
  # Rename it who_names_their_variables_a_seriously
  a_var = o~>a_serious_name
  
  {'oups':
  # remove it
  'o~-',
  'iela':'[1, 3]'
  }
  
  +gaussian(0, 0.1, shape=(100, 3))
  """
      )
  
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 6 for calling the TestGenericConverter obj's underlying member method code with example usage: obj.test_generate(tmpdir, generic_converter, unknown_type_sample_path) without return types