<SYSTEM_TASK:>
Given the following text description, write Python code to implement the functionality described below step by step
<END_TASK>
<USER_TASK:>
Description:
 Abraia - Getting started with image analysis
Step1:  List files
List the files and folders in the root folder ('').
Step2:  Plot an image
Load an image as numpy array and show it in a plot.
Step3:  Image metadata
Read the image metadata and save it as a JSON file.
<ASSISTANT_TASK:>
Python Code:
%%capture
!python -m pip install abraia
import os
if not os.getenv('ABRAIA_KEY'):
    #@markdown <a href="https://abraia.me/console/settings" target="_blank">Get your ABRAIA_KEY</a>
    abraia_key = ''  #@param {type: "string"}
    %env ABRAIA_KEY=$abraia_key
from abraia import Abraia
 
abraia = Abraia()
%%capture
#@markdown <a href="https://abraia.me/console/gallery" target="_blank">Upload and manage your images</a>
url = 'http://upload.wikimedia.org/wikipedia/commons/1/13/Usain_Bolt_16082009_Berlin.JPG'
abraia.upload_file(url, 'usain.jpg')
Explanation: Abraia - Getting started with image analysis
End of explanation
import pandas as pd
folder = ''
files, folders = abraia.list_files(folder)
pd.DataFrame(files)
Explanation: List files
List the files and folders in the root folder ('').
End of explanation
import matplotlib.pyplot as plt
img = abraia.load_image('usain.jpg')
plt.figure()
plt.title('Image')
plt.imshow(img)
plt.axis('off')
plt.show()
Explanation: Plot an image
Load an image as numpy array and show it in a plot.
End of explanation
import json
meta = abraia.load_metadata('usain.jpg')
abraia.save_file('usain.json', json.dumps(meta))
meta
Explanation: Image metadata
Read the image metadata and save it as a JSON file.
End of explanation
<END_TASK>