<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def valid_child_records(self):
 child_lei = list() """Loop through data to find a valid record. Return list of LEI."""

        for d in self.raw['data']:

            # We're not very greedy here, but it seems some records have
            # lapsed even through the issuer is active
            if d['attributes']['relationship']['status'] in ['ACTIVE']:
                child_lei.append(
                    d['attributes']['relationship']['startNode']['id'])

        return child_lei