code: def neg_step(query):
      return (
          not isinstance(query, (int, bool))
          and not ivy.is_array(query)
          and query is not None
          and query is not Ellipsis
          and (
              (
                  isinstance(query, slice)
                  and query.step is not None
                  and query.step < 0
              )
              or (
                  not isinstance(query, slice)
                  and any(
                      isinstance(q, slice)
                      and q.step is not None
                      and q.step < 0
                      for q in query
                  )
              )
          )
      )
  
imports: from functools import reduce
  from numbers import Number
  from operator import mul
  from typing import Optional, Union, Sequence, Callable, List, Tuple
  import numpy
  import torch
  import ivy
  from ivy.func_wrapper import with_unsupported_dtypes, _update_torch_views
  from .None import backend_version, is_variable
  from ...ivy.general import _broadcast_to
label_desc: Use image node_id 6 for calling a global function with example usage: neg_step(query) and returns: unknown