code: def _test_single_mode(model, sparse=False, edges=False, **kwargs):
      dataset = TestDataset(
          [
              _get_graph(
                  n_nodes=n_nodes,
                  n_features=n_node_features,
                  n_edge_features=n_edge_features if edges else None,
                  sparse=sparse,
              )
          ]
      )
  
      loader = loaders.SingleLoader(dataset, epochs=1)
      inputs = list(loader)[0]
  
      model_instance = model(**kwargs)
      output = model_instance(inputs)
  
file_path: spektral/tests/test_models/core.py
imports: import numpy
  import scipy.sparse
  import tensorflow
  from spektral.data import Dataset, Graph, loaders
label_desc: Use image node_id 2 for calling a global function with example usage: _test_single_mode(model, sparse, edges) without return types