code: def _masked_all_all(data, mask=None):
      if mask is None:
          return data.all()
      return data.masked_fill(~mask, True).all()
  
file_path: pytorch/torch/masked/maskedtensor/reductions.py
imports: import warnings
  import torch
  from .core import is_masked_tensor
  from .creation import as_masked_tensor, masked_tensor
label_desc: Use image node_id 1 for calling a global function with example usage: _masked_all_all(data, mask) and returns: data, data