@staticmethod<EOL><INDENT>def validate_ordered(ordered):<DEDENT>
from pandas.core.dtypes.common import is_bool<EOL>if not is_bool(ordered):<EOL><INDENT>raise TypeError("<STR_LIT>")<EOL><DEDENT>
Validates that we have a valid ordered parameter. If
it is not a boolean, a TypeError will be raised.

Parameters
----------
ordered : object
    The parameter to be verified.

Raises
------
TypeError
    If 'ordered' is not a boolean.