code: def create_binary_plot(
      value: Union[
          List[Tuple[np.ndarray, int]], List[int], List[float]
      ],
      **kwargs,
  ) -> plt.Figure:
      """Checks the type of value and calls the correct plotting function accordingly.
  
      :param value: Output of an reducer function
      :param kwargs: Additional plotting relevant arguments.
      :return: plt.figure that contains a bar plot
      """
      unused(kwargs)
  
      if isinstance(value[0], tuple):
          # in this case, we have the discrete action events and need the relative bar plot for plotting
          fig = create_multi_binary_relative_bar_plot(value)
      else:
          raise NotImplementedError(
              "plotting for this data type not implemented yet"
          )
  
      return fig
  
file_path: maze/maze/core/log_events/log_create_figure_functions.py
imports: from collections import Counter
  from typing import List, Tuple, Union
  import matplotlib.pyplot
  import numpy
  from maze.core.annotations import unused
label_desc: Use image node_id 1 for calling a global function with example usage: create_binary_plot(value) and returns: fig