code: def test_list_interface_index():
      l = DogmaticList([1, 2, 4, 4, 5])
      assert l.index(1) == 0
      assert l.index(4) == 2
      assert l.index(5) == 4
      with pytest.raises(ValueError):
          l.index(3)
  
imports: import pytest
  from sacred.config.custom_containers import DogmaticDict, DogmaticList
label_desc: Use image node_id 18 for calling a global function with example usage: test_list_interface_index() without return types