code: def get_path_pianorolls(path):
      pianoroll_fpath = os.path.join(
          tf.resource_loader.get_data_files_path(), path
      )
      tf.logging.info("Retrieving pianorolls from %s", pianoroll_fpath)
      with tf.gfile.Open(pianoroll_fpath, "r") as p:
          pianorolls = np.load(p)
      if isinstance(pianorolls, np.ndarray):
          tf.logging.info(pianorolls.shape)
      print_statistics(pianorolls)
      return pianorolls
  
file_path: magenta/magenta/models/coconet/coconet_evaluate.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import os
  from magenta.models.coconet import lib_data
  from magenta.models.coconet import lib_evaluation
  from magenta.models.coconet import lib_graph
  from magenta.models.coconet import lib_util
  import numpy
  import tensorflow.compat.v1
label_desc: Use image node_id 5 for calling a global function with example usage: get_path_pianorolls(path) and returns: pianorolls