code: def test_not_found_on_rename() -> None:
      df = pl.DataFrame({"exists": [1, 2, 3]})
  
      err_type = (pl.SchemaFieldNotFoundError, pl.ColumnNotFoundError)
      with pytest.raises(err_type):
          df.rename({"does_not_exist": "exists"})
  
      with pytest.raises(err_type):
          df.select(pl.col("does_not_exist").alias("new_name"))
  
imports: from __future__ import annotations
  import io
  from datetime import date, datetime, time
  from decimal import Decimal
  from typing import TYPE_CHECKING, Any
  import numpy
  import pytest
  import polars
  from polars.datatypes.convert import dtype_to_py_type
  from polars.exceptions import InvalidOperationError
label_desc: Use image node_id 11 for calling a global function with example usage: test_not_found_on_rename() without return types