If you get a function, which does not define the input and output in the help text and which does not contain any comments, this function is not usable. A reliable method to handle this is either asking the author for a well documented code, or to delete the file.
Using a function based on guessing its features is a bad idea. It is like driving a car, at night, with switched off light, and sunglasses, and backwards, but looking to front.
Sorry for the lack of help in this answer. I want to support your reliable programming techniques.