code: def ksubsets(superset, k):
      """
      Finds the subsets of size ``k`` in lexicographic order.
  
      This uses the itertools generator.
  
      Examples
      ========
  
      >>> from sympy.combinatorics.subsets import ksubsets
      >>> list(ksubsets([1, 2, 3], 2))
      [(1, 2), (1, 3), (2, 3)]
      >>> list(ksubsets([1, 2, 3, 4, 5], 2))
      [(1, 2), (1, 3), (1, 4), (1, 5), (2, 3), (2, 4), \
      (2, 5), (3, 4), (3, 5), (4, 5)]
  
      See Also
      ========
  
      Subset
      """
      return combinations(superset, k)
  
imports: from itertools import combinations
  from sympy.combinatorics.graycode import GrayCode
label_desc: Use image node_id 1 for calling a global function with example usage: ksubsets(superset, k) and returns: combinations