@staticmethod
def _entropy_params_check(metric, error_msg):
    """
        Check the definition of a entropy metric for consistency, this will
        rise an assertion error if any error is met.

        :param metric: Entropy metric in a dict form.
        :type metric: dict
        :param error_msg: Error message to return in case of error.
        :type error_msg: str
        """
    assert metric['metric'] == 'entropy', error_msg
    assert len(metric) == 2 and 'column' in metric, error_msg
    col = metric['column']
    assert type(col) is int or type(col) is str, error_msg
