code: def gather_channels(*xs, indexes=None, **kwargs):
      """Slice tensors along channels axis by given indexes"""
      if indexes is None:
          return xs
      elif isinstance(indexes, (int)):
          indexes = [indexes]
      xs = [_gather_channels(x, indexes=indexes, **kwargs) for x in xs]
      return xs
  
file_path: segmentation_models/segmentation_models/base/functional.py
label_desc: Use image node_id 3 for calling a global function with example usage: gather_channels() and returns: xs, xs