code: def contrast_labels(contrasts, names, reverse=False):
      if reverse:
          sl = slice(None, None, -1)
      else:
          sl = slice(None)
      labels = [
          "".join(
              [
                  "{}{}".format(signstr(c, noplus=True), v)
                  for c, v in zip(row, names)[sl]
                  if c != 0
              ]
          )
          for row in contrasts
      ]
      return labels
  
imports: from numpy.testing import assert_equal
  import numpy
label_desc: Use image node_id 5 for calling a global function with example usage: contrast_labels(contrasts, names, reverse) and returns: labels