code: def test_nested_any(x, fn):
      x_copy = copy.deepcopy(x)
      x_bool = ivy.nested_any(x, fn)
      map_nested_dicts(x_copy, fn)
  
      def is_true_any(ob):
          for v in ob.values():
              if isinstance(v, dict):
                  is_true_any(v)
              if isinstance(v, list):
                  for i, item in enumerate(v):
                      return item.count(True) == 1
  
      x_copy_bool = is_true_any(x_copy)
  
      assert x_copy_bool == x_bool
  
imports: import copy
  import warnings
  import pytest
  import numpy
  import ivy
label_desc: Use image node_id 16 for calling a global function with example usage: test_nested_any(x, fn) and returns: unknown