code: def vertex_enumeration_gen(g, qhull_options=None):
      
      try:
          N = g.N
      except AttributeError:
          raise TypeError('input must be a 2-player NormalFormGame')
      if N != 2:
          raise NotImplementedError('Implemented only for 2-player games')
  
      brps = [_BestResponsePolytope(
          g.players[1-i], idx=i, qhull_options=qhull_options
      ) for i in range(N)]
  
      labelings_bits_tup = \
          tuple(_ints_arr_to_bits(brps[i].labelings) for i in range(N))
      equations_tup = tuple(brps[i].equations for i in range(N))
      trans_recips = tuple(brps[i].trans_recip for i in range(N))
  
      return _vertex_enumeration_gen(labelings_bits_tup, equations_tup,
                                     trans_recips)
docs: Generator version of `vertex_enumeration`.
  
      Parameters
      ----------
      g : NormalFormGame
          NormalFormGame instance with 2 players.
  
      qhull_options : str, optional(default=None)
          Options to pass to `scipy.spatial.ConvexHull`. See the `Qhull
          manual <http://www.qhull.org>`_  for details.
  
      Yields
      -------
      tuple(ndarray(float, ndim=1))
          Tuple of Nash equilibrium mixed actions.