code: def print_mask(mask):
      # assert mask is constant across pitch
      assert np.equal(mask, mask[:, 0, :][:, None, :]).all()
      # get rid of pitch dimension and transpose to get landscape orientation
      mask = mask[:, 0, :].T
  
file_path: magenta/magenta/models/coconet/lib_mask.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from magenta.models.coconet import lib_util
  import numpy
label_desc: Use image node_id 2 for calling a global function with example usage: print_mask(mask) without return types