code: def _test_mixed_mode(model, sparse=False, edges=False, **kwargs):
      graphs = []
      for i in range(batch_size):
          graph = _get_graph(
              n_nodes=n_nodes,
              n_features=n_node_features,
              n_edge_features=n_edge_features if edges else None,
              sparse=sparse,
          )
          if i == 0:
              a = graph.a
          graph.a = None
  
          graphs.append(graph)
  
      dataset = TestDataset(graphs)
      dataset.a = a
  
      loader = loaders.MixedLoader(
          dataset, epochs=1, batch_size=batch_size
      )
      inputs = loader.__next__()
  
      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 5 for calling a global function with example usage: _test_mixed_mode(model, sparse, edges) without return types