code: def test_dc_list_indexing_error():
      def f(a, *, nd):
          assert nd is mx.np
          return [a[[1, 2, 3]]]
  
      for mode in (
          "all",
          "symbolic",
          "imperative",
          "imperativewithnondccompute",
      ):
          with pytest.raises(TypeError):
              _assert_dc(_dc_simple_setup, f, mode=mode)
  
imports: import functools
  import operator
  import numpy
  import mxnet
  import mxnet._deferred_compute
  from mxnet.base import MXNetError
  from mxnet.util import TemporaryDirectory
  import pytest
label_desc: Use image node_id 27 for calling a global function with example usage: test_dc_list_indexing_error() and returns: list