code: def _check_smart_index(array, idx, should_be_broadcast=False):
      result = smart_array_index(array, idx)
      np.testing.assert_array_equal(result, array[idx])
  
      if should_be_broadcast:
          assert result.strides[0] == 0
      else:
          assert result.strides[0] > 0
  
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 2 for calling a global function with example usage: _check_smart_index(array, idx, should_be_broadcast) without return types