code: def get_action(self, vw, context, actions):
      vw_text_example = self.to_vw_example_format(context, actions)
      pmf = vw.predict(vw_text_example)
      chosen_action_index, prob = self.sample_custom_pmf(pmf)
      self.index_count.update(((chosen_action_index, prob),))
      return actions[chosen_action_index], prob
  
imports: import vowpalwabbit
  from distributionally_robust_data import OnlineCressieRead
  import collections
  import os
  import random
  import os
label_desc: Use image node_id 5 for calling the Simulator obj's underlying member method code with example usage: obj.get_action(vw, context, actions) and returns: actions,  prob