I got an error about imwrite command help

i got this:

[ WARN:0@2.797] global D:\a\opencv-python\opencv-python\opencv\modules\imgcodecs\src\loadsave.cpp (239) cv::findDecoder imread_('0.png'): can't open/read file: check file path/integrity
[ WARN:0@2.799] global D:\a\opencv-python\opencv-python\opencv\modules\imgcodecs\src\loadsave.cpp (239) cv::findDecoder imread_('1.png'): can't open/read file: check file path/integrity
Traceback (most recent call last):
  File "C:\Users\EgemenArda\PycharmProjects\imagetry\main.py", line 65, in <module>
    cv2.imwrite('result.png', result)
cv2.error: OpenCV(4.6.0) :-1: error: (-5:Bad argument) in function 'imwrite'
> Overload resolution failed:
>  - img data type = 17 is not supported
>  - Expected Ptr<cv::UMat> for argument 'img'

error i can share my full code too and changing 0 to 1 give another error:

[ WARN:0@2.170] global D:\a\opencv-python\opencv-python\opencv\modules\imgcodecs\src\loadsave.cpp (239) cv::findDecoder imread_('0.png'): can't open/read file: check file path/integrity
[ WARN:0@2.170] global D:\a\opencv-python\opencv-python\opencv\modules\imgcodecs\src\loadsave.cpp (239) cv::findDecoder imread_('1.png'): can't open/read file: check file path/integrity
[None]
[None, None]
Traceback (most recent call last):
  File "C:\Users\EgemenArda\PycharmProjects\imagetry\main.py", line 64, in <module>
    result = np.concatenate([myfunctions], axis=1)
  File "<__array_function__ internals>", line 180, in concatenate
numpy.AxisError: axis 1 is out of bounds for array of dimension 1

you should have read the previous errors (imread failed) and debugged your program (notice your argument to imwrite is bad)

MRE is required. your question lacks code and evidence of own effort.