code: def collapse_channels(X):
      if (X < 0).any():
          X = np.concatenate(
              [np.maximum(0, X), np.maximum(0, -X)], axis=-1
          )
      return sparse_channels_to_rgb(X)
  
imports: import math
  import numpy
label_desc: Use image node_id 3 for calling a global function with example usage: collapse_channels(X) and returns: sparse_channels_to_rgb