code: def retrieve_and_parse_profile(handle):
      
      hcard = retrieve_diaspora_hcard(handle)
      if not hcard:
          return None
      profile = parse_profile_from_hcard(hcard, handle)
      try:
          profile.validate()
      except ValueError as ex:
          logger.warning("retrieve_and_parse_profile - found profile %s but it didn't validate: %s",
                         profile, ex)
          return None
      return profile
docs: Retrieve the remote user and return a Profile object.
  
      :arg handle: User handle in username@domain.tld format
      :returns: ``federation.entities.Profile`` instance or None