code: def reduce_sum(x, **kwargs):
      if K.is_sparse(x):
          return tf.sparse.reduce_sum(x, **kwargs)
      else:
          return tf.reduce_sum(x, **kwargs)
  
file_path: spektral/spektral/layers/pooling/la_pool.py
imports: import tensorflow
  from scipy import sparse
  from tensorflow.keras import backend
  from spektral.layers import ops
  from spektral.layers.pooling.src import SRCPool
label_desc: Use image node_id 2 for calling a global function with example usage: reduce_sum(x) and returns: tf, tf