code: def _any(input: Tensor, dim: tuple, keepdim: bool):
      # Support torch.any with tuple dim argument.
      # Workaround of https://github.com/pytorch/pytorch/issues/56586
      r = input
      for d in reversed(dim):
          r = r.any(dim=d, keepdim=keepdim)
      return r
  
imports: import warnings
  from typing import Any, List, Optional, Tuple, TYPE_CHECKING, Union
  import torch
  from torch import Tensor
  from torch.masked import as_masked_tensor, is_masked_tensor, MaskedTensor
  from .None import _docs
  from torch._prims_common import corresponding_real_dtype
  from torch import sym_float
label_desc: Use image node_id 6 for calling a global function with example usage: _any(input, dim, keepdim) and returns: r