code: def _flash_needed(self, **kwargs):
          
          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
docs: 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