code: def where(self, condition, y):
      """Selects elements from self or y based on condition
  
      Args:
          condition (torch.bool or MPCTensor): when True yield self,
              otherwise yield y
          y (torch.tensor or MPCTensor): values selected at indices
              where condition is False.
  
      Returns: MPCTensor or torch.tensor
      """
      if is_tensor(condition):
          condition = condition.float()
          y_masked = y * (1 - condition)
      else:
          # encrypted tensor must be first operand
          y_masked = (1 - condition) * y
  
      return self * condition + y_masked
  
file_path: CrypTen/crypten/common/functions/logic.py
imports: import crypten
  from crypten.common.tensor_types import is_tensor
label_desc: Use image node_id 11 for calling a global function with example usage: where(condition, y) and returns: unknown