code: def testStar(self):
      g = Graph.Star(5, "in")
      el = [(1, 0), (2, 0), (3, 0), (4, 0)]
      self.assertTrue(g.is_directed())
      self.assertTrue(g.get_edgelist() == el)
      g = Graph.Star(5, "out", center=2)
      el = [(2, 0), (2, 1), (2, 3), (2, 4)]
      self.assertTrue(g.is_directed())
      self.assertTrue(g.get_edgelist() == el)
      g = Graph.Star(5, "mutual", center=2)
      el = [
          (0, 2),
          (1, 2),
          (2, 0),
          (2, 1),
          (2, 3),
          (2, 4),
          (3, 2),
          (4, 2),
      ]
      self.assertTrue(g.is_directed())
      self.assertTrue(sorted(g.get_edgelist()) == el)
      g = Graph.Star(5, center=3)
      el = [(0, 3), (1, 3), (2, 3), (3, 4)]
      self.assertTrue(not g.is_directed())
      self.assertTrue(sorted(g.get_edgelist()) == el)
  
imports: import unittest
  from igraph import Graph, InternalError
label_desc: Use image node_id 1 for calling the GeneratorTests obj's underlying member method code with example usage: obj.testStar() without return types