code: def test_hinsage_input_shapes():
      hs = HinSAGE(
          layer_sizes=[{"1": 2, "2": 2}, 2],
          n_samples=[2, 2],
          input_neighbor_tree=[
              ("1", [1, 2]),
              ("1", [3, 4]),
              ("2", [5]),
              ("1", []),
              ("2", []),
              ("2", []),
          ],
          multiplicity=1,
          input_dim={"1": 2, "2": 4},
      )
      assert hs._input_shapes() == [
          (1, 2),
          (2, 2),
          (2, 4),
          (4, 2),
          (4, 4),
          (4, 4),
      ]
  
imports: import pytest
  import numpy
  import networkx
  from tensorflow import keras
  from tensorflow.keras import regularizers
  from stellargraph import StellarGraph
  from stellargraph.layer.hinsage import *
  from stellargraph.mapper import *
  from ..test_utils.graphs import example_hin_1
  from ..None import test_utils
label_desc: Use image node_id 8 for calling a global function with example usage: test_hinsage_input_shapes() without return types