# swegym / project-monai__monai-7318

- taskset: [swegym](https://harnessreport.com/tasks/swegym.md)
- difficulty: hard
- category: debugging
- language: 
- runnable from the site: no
- agent timeout: 3000s

## Results by harness

_none yet_

## Instruction

```
Support specified filenames in `Saveimage`
Now `SaveImage` only supports specified the `output_name_formatter` which makes it a little complicated for users.
https://github.com/Project-MONAI/MONAI/blob/b1c8b42d03bf3c1daabd6c39a35fcbdadb57e8b0/monai/transforms/io/array.py#L393C14-L393C14

Add support specified `filename` for users to save like `nibabel.save`.

_Originally posted by @heyufan1995_ 
Support specified filenames in `Saveimage`
Now `SaveImage` only supports specified the `output_name_formatter` which makes it a little complicated for users.
https://github.com/Project-MONAI/MONAI/blob/b1c8b42d03bf3c1daabd6c39a35fcbdadb57e8b0/monai/transforms/io/array.py#L393C14-L393C14

Add support specified `filename` for users to save like `nibabel.save`.

_Originally posted by @heyufan1995_
```
---
Harness Report runs agent harnesses from their GitHub repos on Harbor tasks and records every model call. Every page is also `.md` and `.json`; index: https://harnessreport.com/llms.txt · MCP: https://harnessreport.com/mcp
