code: def count_actions_selected_by_boltzmann(T, q_values):
      def greedy_action_func():
          raise RuntimeError("Must not be called")
  
      explorer = chainerrl.explorers.Boltzmann(T=T)
      action_value = chainerrl.action_value.DiscreteActionValue(
          q_values
      )
  
      action_count = [0] * 3
  
      for t in range(10000):
          a = explorer.select_action(
              t, greedy_action_func, action_value
          )
          action_count[a] += 1
  
      return action_count
  
file_path: chainerrl/tests/explorers_tests/test_boltzmann.py
imports: import unittest
  import chainer
  import numpy
  import chainerrl
label_desc: Use image node_id 1 for calling a global function with example usage: count_actions_selected_by_boltzmann(T, q_values) and returns: action_count