<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def clean_registration_ids(self, registration_ids=[]):
 """ Checks registration ids and excludes inactive ids Args: registration_ids (list, optional):
 list of ids to be cleaned Returns: list: cleaned registration ids """

        valid_registration_ids = []
        for registration_id in registration_ids:
            details = self.registration_info_request(registration_id)
            if details.status_code == 200:
                valid_registration_ids.append(registration_id)
        return valid_registration_ids