code: def load_events(filename):
      """
      Load a events from a text file, one floating point number per line.
  
      Parameters
      ----------
      filename : str or file handle
          File to load the events from.
  
      Returns
      -------
      numpy array
          Events.
  
      Notes
      -----
      Comments (lines starting with '#') and additional columns are ignored,
      i.e. only the first column is returned.
  
      """
      # read in the events, one per line
      events = np.loadtxt(filename, ndmin=2)
      # 1st column is the event's time, the rest is ignored
      return events[:, 0]
  
imports: from __future__ import absolute_import, division, print_function
  import contextlib
  import io
  import numpy
  from .audio import load_audio_file
  from .midi import load_midi, write_midi
  from ..utils import suppress_warnings, string_types
label_desc: Use image node_id 2 for calling a global function with example usage: load_events(filename) and returns: events