code: def test_get_using_dot_notation_index_error():
      with pytest.raises(ValueError):
          sagemaker.local.utils.get_using_dot_notation(
              {"foo": ["bar"]}, "foo[1]"
          )
  
imports: from __future__ import absolute_import
  import os
  import errno
  import pytest
  import json
  from mock import patch, Mock, mock_open
  import sagemaker.local.utils
  from sagemaker.session_settings import SessionSettings
label_desc: Use image node_id 13 for calling a global function with example usage: test_get_using_dot_notation_index_error() without return types