<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _already_in_album(self,fullfile,pid,album_id):
 """Check to see if photo with given pid is already in the album_id, returns true if this is the case """


        logger.debug("fb: Checking if pid %s in album %s",pid,album_id)
        pid_in_album=[]
        # Get all photos in album
        photos = self.fb.get_connections(str(album_id),"photos")['data']

        # Get all pids in fb album
        for photo in photos:
            pid_in_album.append(photo['id'])

        logger.debug("fb: album %d contains these photos: %s",album_id,pid_in_album)

        # Check if our pid matches
        if pid in pid_in_album:
            return True

        return False