def METHOD_NAME(self, code):
    js_code, js_args = self._separate_code_and_args(code)
    if not js_code:
        raise ValueError("JavaScript code was not found from code argument.")
    js_code = "".join(js_code)
    path = js_code.replace("/", os.sep)
    if os.path.isabs(path) and os.path.isfile(path):
        js_code = self._read_javascript_from_file(path)
    return js_code, js_args