class_docstr: Class for two-set partitions of sets.
  
  Two-set partitions of a smaller subset of :math:`\{0,...,n-1\}` are also allowed,
  where :math:`n` is a positive integer, which is not passed as an argument as it is
  nowhere needed.
  
  The parameters ``part1`` and ``part2`` are assigned to the attributes ``self.part1``
  and ``self.part2`` in a unique sorted way: the one that contains the smallest
  minimal value is assigned to ``self.part1`` for consistency.
  
  Parameters
  ----------
  part1 : iterable
      The first part of the split, an iterable that is a subset of
      :math:`\{0,\dots,n-1\}`. It may be empty, but must have empty intersection with
      ``part2``.
  part2 : iterable
      The second part of the split, an iterable that is a subset of
      :math:`\{0,\dots,n-1\}`. It may be empty, but must have empty intersection with
      ``part1``.
class_docstr_tok: ["Class","for","two-set","partitions","of","sets",".","Two-set","partitions","of","a","smaller","subset","of",":","math",":","`","\\","{","0",",","...",",","n-1\\","}","`","are","also","allowed",",","where",":","math",":","`","n","`","is","a","positive","integer",",","which","is","not","passed","as","an","argument","as","it","is","nowhere","needed",".","The","parameters","``","part1","``","and","``","part2","``","are","assigned","to","the","attributes","``","self.part1","``","and","``","self.part2","``","in","a","unique","sorted","way",":","the","one","that","contains","the","smallest","minimal","value","is","assigned","to","``","self.part1","``","for","consistency",".","Parameters","--","--","--","--","--","part1",":","iterable","The","first","part","of","the","split",",","an","iterable","that","is","a","subset","of",":","math",":","`","\\","{","0",",","\\dots",",","n-1\\","}","`",".","It","may","be","empty",",","but","must","have","empty","intersection","with","``","part2","``",".","part2",":","iterable","The","second","part","of","the","split",",","an","iterable","that","is","a","subset","of",":","math",":","`","\\","{","0",",","\\dots",",","n-1\\","}","`",".","It","may","be","empty",",","but","must","have","empty","intersection","with","``","part1","``","."]
docstr: Return True if and only if both parts are non-empty.
  
  We use the boolean representation to indicate whether both parts of a split are
  non-empty.
  
  Returns
  -------
  boolean_of_split : bool
      Returns the boolean representation of a split.
code: def __bool__(self):
      """Return True if and only if both parts are non-empty.
  
      We use the boolean representation to indicate whether both parts of a split are
      non-empty.
  
      Returns
      -------
      boolean_of_split : bool
          Returns the boolean representation of a split.
      """
      return bool(self.part1) and bool(self.part2)
  
imports: import functools
  import itertools
  import geomstats.backend
  import geomstats.geometry.spd_matrices
  from geomstats.geometry.stratified.point_set import Point, PointSet, _vectorize_point
label_desc: Use image node_id 2 for calling the Split obj's underlying member method code with example usage: obj.__bool__() and returns: unknown