code: def _apply_reduction(fn, *args, **kwargs):
      if fn in NATIVE_REDUCE_MAP:
          return NATIVE_REDUCE_MAP[fn](*args, **kwargs)
      if fn in TORCH_REDUCE_MAP:
          return TORCH_REDUCE_MAP[fn](*args, **kwargs)
      if fn in TENSOR_REDUCE_MAP:
          return TENSOR_REDUCE_MAP[fn](*args, **kwargs)
      return NotImplemented
  
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 12 for calling a global function with example usage: _apply_reduction(fn) and returns: NotImplemented, NATIVE_REDUCE_MAP, TORCH_REDUCE_MAP, TENSOR_REDUCE_MAP