code: def forward(self):
      # set `inf` scores for arms which don't have the minimum number of observations
      return torch.where(
          self.total_n_obs_per_arm >= self.min_num_obs_per_arm,
          self.get_scores().float(),
          torch.tensor(torch.inf, dtype=torch.float),
      )
  
imports: from abc import ABC, abstractmethod
  from typing import List, Optional, Tuple
  import torch
  from torch import Tensor
label_desc: Use image node_id 7 for calling the MABAlgo obj's underlying member method code with example usage: obj.forward() and returns: torch