code: def apply_op_to_not_none_tensors(tensor_op, tensors, *args):
      return [
          tensor_op(tensor, *args) if tensor is not None else tensor
          for tensor in tensors
      ]
  
file_path: horovod/horovod/tensorflow/gradient_aggregation.py
imports: import os
  import tensorflow
  from packaging import version
  from horovod.tensorflow.mpi_ops import size_op
  from horovod.tensorflow.mpi_ops import global_process_set
label_desc: Use image node_id 1 for calling a global function with example usage: apply_op_to_not_none_tensors(tensor_op, tensors) and returns: unknown