def retrieve_and_parse_profile(fid: str) -> Optional[ActivitypubProfile]:
profile = retrieve_and_parse_document(fid)<EOL>if not profile:<EOL><INDENT>return<EOL><DEDENT>try:<EOL><INDENT>profile.validate()<EOL><DEDENT>except ValueError as ex:<EOL><INDENT>logger.warning("<STR_LIT>",<EOL>profile, ex)<EOL>return<EOL><DEDENT>return profile<EOL>
Retrieve the remote fid and return a Profile object.