code: def test_homo_link_neighbor_loader_no_edges():
      loader = LinkNeighborLoader(
          Data(num_nodes=100),
          num_neighbors=[],
          batch_size=20,
          edge_label_index=get_random_edge_index(100, 100, 100),
      )
  
      for batch in loader:
          assert isinstance(batch, Data)
          assert batch.input_id.numel() == 20
          assert batch.edge_label_index.size(1) == 20
          assert (
              batch.num_nodes == batch.edge_label_index.unique().numel()
          )
  
file_path: pytorch_geometric/test/loader/test_link_neighbor_loader.py
imports: import pytest
  import torch
  from torch_geometric.data import Data, HeteroData
  from torch_geometric.loader import LinkNeighborLoader
  from torch_geometric.testing import MyFeatureStore, MyGraphStore, get_random_edge_index, onlyNeighborSampler, withCUDA, withPackage
label_desc: Use image node_id 9 for calling a global function with example usage: test_homo_link_neighbor_loader_no_edges() without return types