<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_pred(self, pred, ignore_warning=False):
        ''' Takes the predicate and returns the suffix, lower case, stripped version
        '''
        original_pred = pred
        pred = pred.lower().strip()
        if 'http' in pred:
            pred = pred.split('/')[-1]
        elif ':' in pred:
            if pred[-1] != ':': # some matches are "prefix:" only
                pred = pred.split(':')[-1]
        else:
            if not ignore_warning:
                exit('Not a valid predicate: ' + original_pred + '. Needs to be an iri "/" or curie ":".')
        return pred