code: def _is_variable(x, exclusive=False, to_ignore=None) -> bool:
      x = ivy.to_native(x, nested=True, to_ignore=to_ignore)
      return ivy.nested_map(
          lambda x: current_backend(x).is_variable(
              x, exclusive=exclusive
          ),
          x,
          include_derived=True,
          shallow=False,
          to_ignore=to_ignore,
      )
  
imports: from typing import Sequence, Union, Optional, Tuple, Callable
  import numpy
  import itertools
  import ivy
  from ivy.utils.backend import current_backend
  from ivy.func_wrapper import handle_array_function, inputs_to_ivy_arrays, to_native_arrays_and_back, handle_out_argument, handle_nestable, handle_array_like_without_promotion, handle_device, handle_backend_invalid
  from ivy.utils.exceptions import handle_exceptions
label_desc: Use image node_id 18 for calling a global function with example usage: _is_variable(x, exclusive, to_ignore) and returns: ivy