To check if the function works as expected, you can follow these steps:

1. Create a new file in your project directory, let's say `test.js`.

2. Copy the function code provided earlier into `test.js`, along with the import statements for `fs` and `node-fetch`.

3. Call the `downloadImage` function with an actual image URL and a file path where you want to save the image. Make sure the image URL is accessible and points to a valid image file.

4. Run the `test.js` file using Node.js. Open your terminal or command prompt, navigate to the directory where `test.js` is located, and execute the command: `node test.js`.

5. If everything goes well, the function will download the image from the specified URL and save it to the provided file path.

6. After running the script, check the specified file path to see if the image has been successfully downloaded.

If the image is downloaded and saved without any errors or console log messages indicating failures, then the function is working as expected.
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence