def METHOD_NAME(self, disable_auto_mount=False):
    runtime = code_to_function(
        name=self.name,
        project=self.project,
        filename=self.code_filename,
        handler=self.code_handler,
        kind="nuclio",
        image=self.image_name,
        description="test function",
    )
    runtime.spec.disable_auto_mount = disable_auto_mount
    return runtime