code: def _check_query(query):
      return not isinstance(query, list) and (
          not (
              ivy.is_array(query)
              and ivy.is_bool_dtype(query) ^ bool(query.ndim > 0)
          )
      )
  
imports: from hypothesis import strategies, given, assume
  import numpy
  import tensorflow
  import ivy
  import ivy_tests.test_ivy.helpers
  from ivy_tests.test_ivy.helpers import handle_frontend_method, BackendHandler
  from ivy_tests.test_ivy.test_frontends.test_tensorflow.test_raw_ops import _pow_helper_shared_dtype
  from ivy.functional.frontends.tensorflow import EagerTensor
label_desc: Use image node_id 2 for calling a global function with example usage: _check_query(query) and returns: unknown