code: def test_enumerating_directions():
      for backend in imp_op_backends:
          print("testing directions for", backend.framework_name)
          for shape in [[], [1], [1, 1, 1], [2, 3, 5, 7]]:
              x = numpy.arange(numpy.prod(shape)).reshape(shape)
              axes1 = _enumerate_directions(x)
              axes2 = _enumerate_directions(backend.from_numpy(x))
              assert len(axes1) == len(axes2) == len(shape)
              for ax1, ax2 in zip(axes1, axes2):
                  ax2 = backend.to_numpy(ax2)
                  assert ax1.shape == ax2.shape
                  assert numpy.allclose(ax1, ax2)
  
imports: import itertools
  import numpy
  import pytest
  from einops import EinopsError
  from einops.einops import rearrange, reduce, repeat, _enumerate_directions
  from .None import collect_test_backends, is_backend_tested, FLOAT_REDUCTIONS
label_desc: Use image node_id 13 for calling a global function with example usage: test_enumerating_directions() without return types