code: def set_timestamp(cls, filename: str, response: HTTPResponse):
          '''Set the Last-Modified timestamp onto the given file.
  
          Args:
              filename: The path of the file
              response: Response
          '''
          last_modified = response.fields.get('Last-Modified')
  
          if not last_modified:
              return
  
          try:
              last_modified = email.utils.parsedate(last_modified)
          except ValueError:
              _logger.exception('Failed to parse date.')
              return
  
          last_modified = time.mktime(last_modified)
  
          os.utime(filename, (time.time(), last_modified)f set_timestamp(cls, filename: str, response: HTTPResponse):
          '''Set the Last-Modified timestamp onto the given file.
  
          Args:
              filename: The path of the file
              response: Response
          '''
          last_modified = response.fields.get('Last-Modified')
  
          if not last_modified:
              return
  
          try:
              last_modified = email.utils.parsedate(last_modified)
          except ValueError:
              _logger.exception('Failed to parse date.')
              return
  
          last_modified = time.mktime(last_modified)
  
          os.utime(filename, (time.time(), last_modified))
docs: Set the Last-Modified timestamp onto the given file.
  
          Args:
              filename: The path of the file
              response: Response