code: def any(input, dim=None, keepdim=False, *, out=None):
      input_dtype = ivy.as_ivy_dtype(input.dtype)
      ret = ivy.any(input, axis=dim, keepdims=keepdim, out=out)
      if ivy.is_uint_dtype(input_dtype):
          ret = ivy.astype(ret, input_dtype, out=out)
      return ret
  
imports: import ivy
  from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes
  from ivy.functional.frontends.torch.func_wrapper import to_ivy_arrays_and_back, numpy_to_torch_style_args
  from collections import namedtuple
  import ivy.functional.frontends.torch
label_desc: Use image node_id 5 for calling a global function with example usage: any(input, dim, keepdim) and returns: ret