<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _flash_needed(self, **kwargs):
 """ Check if flashing is needed. Flashing can be skipped if resource binary_sha1 attribute matches build sha1 and forceflash is not True. :param kwargs: Keyword arguments (forceflash: Boolean) :return: Boolean """

        forceflash = kwargs.get("forceflash", False)
        cur_binary_sha1 = self.dutinformation.build_binary_sha1
        if not forceflash and self.build.sha1 == cur_binary_sha1:
            return False
        return True