code: def test_convert_to_dict():
      x = ["a", "b"]
      x = convert_to_dict(x)
      assert sorted(x.keys()) == [0, 1]
      assert x[0] == "a"
      assert x[1] == "b"
  
      x = {2: "a", 1: "b"}
      x = convert_to_dict(x)
      assert sorted(x.keys()) == [1, 2]
      assert x[2] == "a"
      assert x[1] == "b"
  
file_path: OMLT/tests/test_scaling.py
imports: import numpy
  import pytest
  from omlt import OffsetScaling
  from omlt.scaling import convert_to_dict
label_desc: Use image node_id 1 for calling a global function with example usage: test_convert_to_dict() without return types