code: def test_positional_encoding(device):
      encoder = PositionalEncoding(64).to(device)
      assert str(encoder) == "PositionalEncoding(64)"
  
      x = torch.tensor([1.0, 2.0, 3.0], device=device)
      assert encoder(x).size() == (3, 64)
  
imports: import torch
  from torch_geometric.nn import PositionalEncoding, TemporalEncoding
  from torch_geometric.testing import withCUDA
label_desc: Use image node_id 1 for calling a global function with example usage: test_positional_encoding(device) without return types