code: def test_implicit_root_has_attrs():
      def implicit_root_has_read():
          T.reads([])  # error: implicit root does not support reads
          T.evaluate(0.0)
  
      def implicit_root_has_write():
          T.writes([])  # error: implicit root does not support writes
          T.evaluate(0.0)
  
      def implicit_root_has_attrs():
          T.block_attr(
              {}
          )  # error: implicit root does not support block_attr
          T.evaluate(0.0)
  
      def implicit_root_has_predicate():
          T.where(
              True
          )  # error: implicit root does not support predicate
          T.evaluate(0.0)
  
      def implicit_root_has_axes():
          v = T.axis.S(
              0, 0
          )  # error: implicit root does not support axis define
          T.evaluate(0.0)
  
      check_error(implicit_root_has_read, 2)
      check_error(implicit_root_has_write, 2)
      check_error(implicit_root_has_attrs, 2)
      check_error(implicit_root_has_predicate, 2)
      check_error(implicit_root_has_axes, 2)
  
imports: import inspect
  import re
  import pytest
  import tvm
  import tvm.testing
  from tvm import tir
  from tvm.ir.diagnostics import override_renderer
  from tvm.script import from_source
  from tvm.script import tir
label_desc: Use image node_id 27 for calling a global function with example usage: test_implicit_root_has_attrs() without return types