code: def test_tir_schedule_remove_rv():
      # Tests:
      # - Schedule.remove_rv
      sch = tir.Schedule(matmul, debug_mask="all")
      block_rv = sch.get_block(name="update")
      assert sch.get(block_rv).name_hint == "update"
      sch.remove_rv(block_rv)
      with pytest.raises(IndexError):
          sch.get(block_rv)
  
imports: import sys
  import pytest
  import tvm
  import tvm.testing
  from tvm import tir
  from tvm.ir import IRModule
  from tvm.script import tir
  from tvm.tir.schedule.testing import assert_structural_equal_ignore_global_symbol, verify_trace_roundtrip
label_desc: Use image node_id 12 for calling a global function with example usage: test_tir_schedule_remove_rv() without return types