code: def _inplace_add(X, Y):
      """Do an in-place addition on X accounting for if Y is a masked tensor."""
  
      if isinstance(Y, torch.masked.MaskedTensor):
          X += Y._masked_data
      else:
          X += Y
  
file_path: pomegranate/pomegranate/_utils.py
imports: import numpy
  import torch
  import collections
  from apricot import FacilityLocationSelection
  from apricot import FeatureBasedSelection
label_desc: Use image node_id 1 for calling a global function with example usage: _inplace_add(X, Y) without return types