def METHOD_NAME(self, path):
    self.deprecatedPrint()
    abs_path = os.path.abspath(path)
    naas_type = guess_type(abs_path)
    display(Markdown("Response Set as File, preview below: "))
    display(
        JSON(
            {"path": abs_path}, metadata={"naas_api": True, "naas_type": naas_type}
        )
    )