parameters: (cls, tuples, names=None)
return_statement: return cls.from_pandas(pdi)
docstring: Convert list of tuples to MultiIndex.
  
          Parameters
          ----------
          tuples : list / sequence of tuple-likes
              Each tuple is the index of one row/column.
          names : list / sequence of str, optional
              Names for the levels in the index.
  
          Returns
          -------
          MultiIndex
  
          See Also
          --------
          MultiIndex.from_product : Make a MultiIndex from cartesian product
                                    of iterables.
          MultiIndex.from_frame : Make a MultiIndex from a DataFrame.
  
          Examples
          --------
          >>> tuples = [(1, 'red'), (1, 'blue'),
          ...           (2, 'red'), (2, 'blue')]
          >>> cudf.MultiIndex.from_tuples(tuples, names=('number', 'color'))
          MultiIndex([(1,  'red'),
                      (1, 'blue'),
                      (2,  'red'),
                      (2, 'blue')],
                     names=['number', 'color'])
docstring_summary: Convert list of tuples to MultiIndex.
docstring_tokens: Convert list of tuples to MultiIndex .
function: def from_tuples(cls, tuples, names=None):
          """
          Convert list of tuples to MultiIndex.
  
          Parameters
          ----------
          tuples : list / sequence of tuple-likes
              Each tuple is the index of one row/column.
          names : list / sequence of str, optional
              Names for the levels in the index.
  
          Returns
          -------
          MultiIndex
  
          See Also
          --------
          MultiIndex.from_product : Make a MultiIndex from cartesian product
                                    of iterables.
          MultiIndex.from_frame : Make a MultiIndex from a DataFrame.
  
          Examples
          --------
          >>> tuples = [(1, 'red'), (1, 'blue'),
          ...           (2, 'red'), (2, 'blue')]
          >>> cudf.MultiIndex.from_tuples(tuples, names=('number', 'color'))
          MultiIndex([(1,  'red'),
                      (1, 'blue'),
                      (2,  'red'),
                      (2, 'blue')],
                     names=['number', 'color'])
          """
          # Use Pandas for handling Python host objects
          pdi = pd.MultiIndex.from_tuples(tuples, names=names)
          return cls.from_pandas(pdi)
function_tokens: def from_tuples ( cls , tuples , names = None ) : # Use Pandas for handling Python host objects pdi = pd . MultiIndex . from_tuples ( tuples , names = names ) return cls . from_pandas ( pdi )