code: def test_hetero_link_neighbor_loader_no_edges():
      loader = LinkNeighborLoader(
          HeteroData(paper=dict(num_nodes=100)),
          num_neighbors=[],
          edge_label_index=(
              ("paper", "paper"),
              get_random_edge_index(100, 100, 100),
          ),
          batch_size=20,
      )
  
      for batch in loader:
          assert isinstance(batch, HeteroData)
          assert batch["paper", "paper"].input_id.numel() == 20
          assert batch["paper", "paper"].edge_label_index.size(1) == 20
          assert (
              batch["paper"].num_nodes
              == batch["paper", "paper"]
              .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 10 for calling a global function with example usage: test_hetero_link_neighbor_loader_no_edges() without return types