code: def test_smart_array_index_size_0():
      arr = np.zeros((3, 0, 2))
      _check_smart_index(arr, np.array([1]), should_be_broadcast=True)
      _check_smart_index(
          arr, np.array([2, 1, 0]), should_be_broadcast=True
      )
      _check_smart_index(
          arr, np.array([[0, 2], [0, 0]]), should_be_broadcast=True
      )
  
      # strangely enough, numpy doesn't fail for these OOB indices
      _check_smart_index(
          arr, np.array([6], dtype=int), should_be_broadcast=True
      )
      _check_smart_index(
          arr, np.array([-6], dtype=int), should_be_broadcast=True
      )
  
file_path: stellargraph/tests/core/test_utils.py
imports: import pytest
  import numpy
  from stellargraph.core.utils import *
  from ..test_utils import flaky_xfail_mark
  from ..test_utils.graphs import example_graph_random
label_desc: Use image node_id 5 for calling a global function with example usage: test_smart_array_index_size_0() without return types