code: def put(self, filename, data):
          
          # Open the file for writing on the board and write chunks of data.
          self._pyboard.enter_raw_repl()
          self._pyboard.exec_("f = open('{0}', 'wb')".format(filename))
          size = len(data)
          # Loop through and write a buffer size chunk of data at a time.
          for i in range(0, size, BUFFER_SIZE):
              chunk_size = min(BUFFER_SIZE, size - i)
              chunk = repr(data[i : i + chunk_size])
              # Make sure to send explicit byte strings (handles python 2 compatibility).
              if not chunk.startswith("b"):
                  chunk = "b" + chunk
              self._pyboard.exec_("f.write({0})".format(chunk))
          self._pyboard.exec_("f.close()")
          self._pyboard.exit_raw_repl()
docs: Create or update the specified file with the provided data.