code: def _run(self, strategy, parameters=None):
          '''
          Run single trial of MAB strategy.
  
          Parameters
          ----------
          strategy : function
          parameters : dict
  
          Returns
          -------
          None
          '''
  
          choice = self.run_strategy(strategy, parameters)
          self.choices.append(choice)
          payout = self.bandits.pull(choice)
          if payout is None:
              print('Trials exhausted. No more values for bandit', choice)
              return None
          else:
              self.wins[choice] += payout
          self.pulls[choice] += f _run(self, strategy, parameters=None):
          '''
          Run single trial of MAB strategy.
  
          Parameters
          ----------
          strategy : function
          parameters : dict
  
          Returns
          -------
          None
          '''
  
          choice = self.run_strategy(strategy, parameters)
          self.choices.append(choice)
          payout = self.bandits.pull(choice)
          if payout is None:
              print('Trials exhausted. No more values for bandit', choice)
              return None
          else:
              self.wins[choice] += payout
          self.pulls[choice] += 1
docs: Run single trial of MAB strategy.
  
          Parameters
          ----------
          strategy : function
          parameters : dict
  
          Returns
          -------
          None