code: def test_pad_invalid_max_num_nodes(is_hetero):
      if is_hetero:
          data = fake_hetero_data(node_types=1)
      else:
          data = fake_data()
  
      transform = Pad(max_num_nodes=data.num_nodes - 1)
  
      with pytest.raises(AssertionError, match="after padding"):
          transform(data)
  
imports: import numbers
  from typing import Dict, Generator, List, Optional, Tuple, Union
  import pytest
  import torch
  from torch_geometric.data import Data, HeteroData
  from torch_geometric.datasets import FakeDataset, FakeHeteroDataset
  from torch_geometric.transforms import Pad
  from torch_geometric.transforms.pad import AttrNamePadding, EdgeTypePadding, NodeTypePadding, Padding, UniformPadding
  from torch_geometric.typing import EdgeType, NodeType
label_desc: Use image node_id 19 for calling a global function with example usage: test_pad_invalid_max_num_nodes(is_hetero) without return types