<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_affiliation_details(self, value, affiliation_id, institute_literal):
 """ This method is used to map the Affiliation between an author and Institution. Parameters value - The author name affiliation_id - Primary key of the affiliation table institute_literal Returns ------- Affiliation details(JSON fixture) which can be written to a file """

        tokens = tuple([t.upper().strip() for t in value.split(',')])
        if len(tokens) == 1:
            tokens = value.split()
        if len(tokens) > 0:
            if len(tokens) > 1:
                aulast, auinit = tokens[0:2]
            else:
                aulast = tokens[0]
                auinit = ''
        else:
            aulast, auinit = tokens[0], ''
        aulast = _strip_punctuation(aulast).upper()
        auinit = _strip_punctuation(auinit).upper()

        author_key = auinit+aulast
        affiliation_row = {
            "model": "django-tethne.affiliation",
            "pk": affiliation_id,
            "fields": {
                "author": self.authorIdMap[author_key],
                "institution": self.instituteIdMap[institute_literal]
            }
        }
        return affiliation_row