code: def test_hinnodemapper_constructor_all_options():
      feature_sizes = {"A": 10, "B": 10}
      G = example_hin_1(feature_sizes=feature_sizes)
  
      gen = HinSAGENodeGenerator(
          G, batch_size=2, num_samples=[2, 2], head_node_type="A"
      )
  
      nodes_of_type_a = G.nodes(node_type="A")
      mapper = gen.flow(nodes_of_type_a)
      assert gen.batch_size == 2
      assert mapper.data_size == len(nodes_of_type_a)
  
imports: from stellargraph.core.graph import *
  from stellargraph.mapper import *
  import networkx
  import numpy
  import random
  import pytest
  import pandas
  import scipy.sparse
  from ..test_utils.graphs import example_graph, example_graph_random, example_hin_1, create_graph_features, repeated_features, weighted_tree
  from ..None import test_utils
label_desc: Use image node_id 15 for calling a global function with example usage: test_hinnodemapper_constructor_all_options() without return types