code: def set_remove_subs(ssli):
      """remove sets that are subsets of another set from a list of tuples
  
      Parameters
      ----------
      ssli : list of tuples
          each tuple is considered as a set
  
      Returns
      -------
      part : list of tuples
          new list with subset tuples removed, it is sorted by set-length of tuples. The
          list contains original tuples, duplicate elements are not removed.
  
      Examples
      --------
      >>> set_remove_subs([(0, 1), (1, 2), (1, 2, 3), (0,)])
      [(1, 2, 3), (0, 1)]
      >>> set_remove_subs([(0, 1), (1, 2), (1,1, 1, 2, 3), (0,)])
      [(1, 1, 1, 2, 3), (0, 1)]
  
      """
      # TODO: maybe convert all tuples to sets immediately, but I do not need the extra efficiency
      part = []
      for s in sorted(list(set(ssli)), key=lambda x: len(set(x)))[::-1]:
          # print(s,
          # s_ = set(s).copy()
          if not any(set(s).issubset(set(t)) for t in part):
              # print('inside:', s
              part.append(s)
          # else: print(part
  
      ##    missing = list(set(i for ll in ssli for i in ll)
      ##                   - set(i for ll in part for i in ll))
      return part
  
imports: from collections import namedtuple
  from statsmodels.compat.python import lzip, lrange
  import copy
  import math
  import numpy
  from numpy.testing import assert_almost_equal, assert_equal
  from scipy import stats, interpolate
  from statsmodels.iolib.table import SimpleTable
  from statsmodels.stats.multitest import multipletests, _ecdf, fdrcorrection, fdrcorrection_twostage
  from statsmodels.graphics import utils
  from statsmodels.tools.sm_exceptions import ValueWarning
label_desc: Use image node_id 30 for calling a global function with example usage: set_remove_subs(ssli) and returns: part