code: def handle_where_and_array_bools(where, input_dtype, test_flags):
      if isinstance(where, (list, tuple)):
          where = where[0]
          test_flags.as_variable += [False]
          test_flags.native_arrays += [False]
          input_dtype += ["bool"]
          return where, input_dtype, test_flags
      return where, input_dtype, test_flags
  
file_path: ivy/ivy_tests/test_ivy/test_frontends/test_numpy/helpers.py
imports: import numpy
  from hypothesis import strategies
  import ivy
  import ivy_tests.test_ivy.helpers
  import ivy.functional.frontends.numpy
  from ivy_tests.test_ivy.helpers.pipeline_helper import BackendHandler, get_frontend_config
  import ivy_tests.test_ivy.helpers.globals
label_desc: Use image node_id 10 for calling a global function with example usage: handle_where_and_array_bools(where, input_dtype, test_flags) and returns: where,  input_dtype,  test_flags, where,  input_dtype,  test_flags