<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def readyup_entity(
        self,
        label: str,
        type: str,
        uid: Union[int, str] = None,
        comment: str = None,
        definition: str = None,
        superclass: str = None,
        synonyms: list = None,
        existing_ids: List[dict] = None, ) -> dict:
        ''' Setups the entity to be InterLex ready

        Args:
            label: name of entity
            type: entities type
                Can be any of the following: term, cde, fde, pde, annotation, relationship
            uid: usually fine and auto completes to api user ID, but if you provide one with a
                clearance higher than 0 you can make your own custom. Good for mass imports by one
                person to avoid label collides.
            definition: entities definition
            comment: a foot note regarding either the interpretation of the data or the data itself
            superclass: entity is a sub-part of this entity
                Example: Organ is a superclass to Brain
            synonyms: entity synonyms
            existing_ids: existing curie/iris that link data | couldnt format this easier
        Returns:
            dict
        '''

        entity = dict(
            label = label,
            type = type,
        )

        if uid:
            entity['uid'] = uid

        if definition:
            entity['definition'] = definition

        if comment:
            entity['comment'] = comment

        if superclass:
            entity['superclass'] = {'ilx_id':self.fix_ilx(superclass)}

        if synonyms:
            entity['synonyms'] = [{'literal': syn} for syn in synonyms]

        if existing_ids:
            if existing_ids[0].get('curie') and existing_ids[0].get('iri'):
                pass
            else:
                exit('Need curie and iri for existing_ids in List[dict] form')
            entity['existing_ids'] = existing_ids

        return entity