Write me a python code extract the metadata from the NRRD file using SimpleITK. The code must do the following steps:
 -  Load the .nrrd file with SimpleITK
-  Extract the headers from the file using the GetMetaDataKeys and GetMetaData methods.
-  Save the metadata headers to a file. Make sure your entire response is wrapped in JSON format.
user