<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def force_add_term(self, entity: dict):
 """ Need to add an entity that already has a label existing in InterLex? Well this is the function for you! entity: need: label <str> type term, cde, pde, fde, anntation, or relationship <str> options: definition <str> superclasses [{'id':<int>}] synonyms [{'literal':<str>}] existing_ids [{'iri':<str>,'curie':<str>'}] ontologies [{'id':<int>}] example: entity = [{ 'type':'term', 'label':'brain', 'existing_ids': [{ 'iri':'http://ncbi.org/123', 'curie':'NCBI:123' }] }] """

        needed = set([
            'label',
            'type',
        ])
        url_ilx_add = self.base_url + '/api/1/ilx/add'
        url_term_add = self.base_url + '/api/1/term/add'
        url_term_update = self.base_url + '/api/1/term/edit/{id}'

        if (set(list(entity)) & needed) != needed:
            exit('You need keys: '+ str(needed - set(list(d))))

        # to ensure uniqueness
        random_string = ''.join(random.choices(string.ascii_uppercase + string.digits, k=25))
        real_label = entity['label']
        entity['label'] = entity['label'] + '_' + random_string

        entity['term'] = entity.pop('label') # ilx only accepts term, will need to replaced back
        primer_response = self.post([(url_ilx_add, entity.copy())], _print=False, crawl=True)[0]
        entity['label'] = entity.pop('term')
        entity['ilx'] = primer_response['fragment'] if primer_response.get('fragment') else primer_response['ilx']
        entity = scicrunch_client_helper.superclasses_bug_fix(entity)

        response = self.post([(url_term_add, entity.copy())], _print=False, crawl=True)[0]

        old_data = self.identifierSearches(
            [response['id']], # just need the ids
            _print = False,
            crawl = True,
        )[response['id']]

        old_data['label'] = real_label
        entity = old_data.copy()
        url_term_update = url_term_update.format(id=entity['id'])
        return self.post([(url_term_update, entity)], _print=False, crawl=True)