code: def test_to_omegaconf():
      class CustomDict(dict):
          pass
  
      class CustomList(list):
          pass
  
      data = {
          "foo": CustomDict(bar=1, bag=CustomList([1, 2])),
          "goo": CustomList([CustomDict(goobar=1)]),
      }
      new_data = to_omegaconf(data)
      assert not isinstance(new_data["foo"], CustomDict)
      assert not isinstance(new_data["foo"]["bag"], CustomList)
      assert not isinstance(new_data["goo"], CustomList)
      assert not isinstance(new_data["goo"][0], CustomDict)
  
file_path: dvc/tests/unit/utils/test_collections.py
imports: import json
  import pytest
  from dvc.utils.collections import apply_diff, merge_dicts, remove_missing_keys, to_omegaconf
  from dvc.utils.serialize import dumps_yaml
label_desc: Use image node_id 5 for calling a global function with example usage: test_to_omegaconf() without return types