def _check_real_cast_modes(self, real_cast_modes):
    if (real_cast_modes is None):
        real_cast_modes = 'real_imag'
    if isinstance(real_cast_modes, str):
        real_cast_modes = [real_cast_modes for _ in self.models]
    assert (len(real_cast_modes) == len(self.models)), 'Size of real_cast_modes should be equal to the total models'
    return real_cast_modes
def _check_real_cast_modes(self, real_cast_modes):
    if (real_cast_modes is None):
        real_cast_modes = 'real_imag'
    if isinstance(real_cast_modes, str):
        real_cast_modes = [real_cast_modes for _ in self.models]
    assert (len(real_cast_modes) == len(self.models)), 'Size of real_cast_modes should be equal to the total models'
    return real_cast_modes