code: def example_HIN_homo(feature_size_by_type=None):
      nlist = [0, 1, 2, 3, 4, 5]
      if feature_size_by_type is not None:
          features = repeated_features(nlist, feature_size_by_type["B"])
      else:
          features = []
  
      nodes = pd.DataFrame(features, index=nlist)
      edges = pd.DataFrame(
          [(0, 4), (1, 4), (1, 5), (2, 4), (3, 5)],
          columns=["source", "target"],
      )
  
      return StellarGraph({"B": nodes}, {"F": edges})
  
imports: import numpy
  import networkx
  import pytest
  import random
  from stellargraph.mapper import *
  from stellargraph.core.graph import *
  from stellargraph.data.unsupervised_sampler import *
  from ..test_utils.graphs import example_graph, example_graph_random, example_hin_1, repeated_features, weighted_tree
  from ..None import test_utils
label_desc: Use image node_id 1 for calling a global function with example usage: example_HIN_homo(feature_size_by_type) and returns: StellarGraph