code: def select_action_epsilon_greedily(
      epsilon, random_action_func, greedy_action_func
  ):
      if np.random.rand() < epsilon:
          return random_action_func(), False
      else:
          return greedy_action_func(), True
  
file_path: chainerrl/chainerrl/explorers/epsilon_greedy.py
imports: from logging import getLogger
  import numpy
  from chainerrl import explorer
label_desc: Use image node_id 1 for calling a global function with example usage: select_action_epsilon_greedily(epsilon, random_action_func, greedy_action_func) and returns: random_action_func,  False, greedy_action_func,  True