def METHOD_NAME(nfo_data, file_path):
    """Write a NFO file"""
    filehandle = xbmcvfs.File(xbmcvfs.translatePath(file_path), 'wb')
    try:
        filehandle.write(bytearray('<?xml version=\'1.0\' encoding=\'UTF-8\'?>'.encode('utf-8')))
        filehandle.write(bytearray(ET.tostring(nfo_data, encoding='utf-8', method='xml')))
    finally:
        filehandle.close()