code: def __torch_function__(cls, func, types, args=(), kwargs=None):
      kwargs = kwargs or {}
  
      from ._ops_refs import _MASKEDTENSOR_FUNCTION_TABLE
  
      if func in _MASKEDTENSOR_FUNCTION_TABLE:
          return _MASKEDTENSOR_FUNCTION_TABLE[func](*args, **kwargs)
  
      if not all(issubclass(cls, t) for t in types):
          return NotImplemented
      with torch._C.DisableTorchFunctionSubclass():
          ret = func(*args, **kwargs)
          if func in get_default_nowrap_functions():
              return ret
          else:
              return torch._tensor._convert(ret, cls)
  
imports: import warnings
  import torch
  from torch.overrides import get_default_nowrap_functions
label_desc: Use image node_id 8 for calling the MaskedTensor obj's underlying member method code with example usage: obj.__torch_function__(cls, func, types, args, kwargs) and returns: _MASKEDTENSOR_FUNCTION_TABLE, NotImplemented, ret, torch