code: def test_logical_reductions_invalid(
      func, is_module, xp, shape, axis, keepdims, dtype, device
  ):
      a = array_utils.create_dummy_ndarray(xp, shape, dtype, device)
      if is_module:
          fn = getattr(xp, func)
          fn(a, axis=axis, keepdims=keepdims)
      else:
          fn = getattr(a, func)
          fn(axis=axis, keepdims=keepdims)
  
imports: import chainer
  import numpy
  import pytest
  import chainerx
  import chainerx.testing
  from chainerx_tests import array_utils
  from chainerx_tests import dtype_utils
  from chainerx_tests import op_utils
label_desc: Use image node_id 5 for calling a global function with example usage: test_logical_reductions_invalid(func, is_module, xp, shape, axis, keepdims, dtype, device) without return types