code: def _run_dense_op(op, *args, **kwargs):
      for a in args:
          assert isinstance(a, np.ndarray)
      result = op(*args, **kwargs)
      if not isinstance(result, list):
          result = [result]
      for r in result:
          assert isinstance(r, np.ndarray)
  
      return result
  
imports: import networkx
  import numpy
  import pytest
  import scipy.sparse
  from spektral.utils import convolution
label_desc: Use image node_id 1 for calling a global function with example usage: _run_dense_op(op) and returns: result