code: def get(remote_file, local_file):
      
      # Get the file contents.
      board_files = files.Files(_board)
      contents = board_files.get(remote_file)
      # Print the file out if no local file was provided, otherwise save it.
      if local_file is None:
          print(contents.decode("utf-8"))
      else:
          local_file.write(contents)
docs: Retrieve a file from the board.
  
      Get will download a file from the board and print its contents or save it
      locally.  You must pass at least one argument which is the path to the file
      to download from the board.  If you don't specify a second argument then
      the file contents will be printed to standard output.  However if you pass
      a file name as the second argument then the contents of the downloaded file
      will be saved to that file (overwriting anything inside it!).
  
      For example to retrieve the boot.py and print it out run:
  
        ampy --port /board/serial/port get boot.py
  
      Or to get main.py and save it as main.py locally run:
  
        ampy --port /board/serial/port get main.py main.py