code: def _get_masked_fn(fn):
      if fn == "all":
          return _masked_all
      return getattr(torch.masked, fn)
  
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 5 for calling a global function with example usage: _get_masked_fn(fn) and returns: getattr, _masked_all