def get_shapiro(self):
        """
            Perform the Shapiro-Wilk test for normality.

            Returns:
                tuple: statistic value and p-value.

            Note:
                Need scipy.stats module to perform Shapiro-Wilk test.
        """

        try:
            from scipy import stats
        except ImportError:
            raise ImportError("Need 'scipy.stats' module to calculate "
                              "shapiro-wilk test.")

        error = (self.predicted_targets - self.expected_targets).flatten()

         # Calculate Shapiro-Wilk normality index
        sw_statistic, sw_p_value = stats.shapiro(error)

        return sw_statistic, sw_p_value
dataset/ETHPy150Open acba/elm/elm/mltools.py/Error.get_shapiro/swapped operands of `-`