code: def _any(judge_result):
      """Since built-in ``any`` works only when the element of iterable is not
      iterable, implement the function."""
      if not isinstance(judge_result, Iterable):
          return judge_result
  
      try:
          for element in judge_result:
              if _any(element):
                  return True
      except TypeError:
          # Maybe encounter the case: torch.tensor(True) | torch.tensor(False)
          if judge_result:
              return True
      return False
  
file_path: lavis/lavis/common/annotator/uniformer/mmcv/utils/testing.py
imports: import sys
  from collections.abc import Iterable
  from runpy import run_path
  from shlex import split
  from typing import Any, Dict, List
  from unittest.mock import patch
label_desc: Use image node_id 2 for calling a global function with example usage: _any(judge_result) and returns: False, judge_result, True, True