code: def _type_check_err(x: Any, name: str, expected: Any) -> str:
      return (
          f'"{name}" has wrong type. '
          f'Expected "{_type2str(expected)}", '
          f'but gets: "{_type2str(_val2type(x))}"'
      )
  
file_path: tvm/python/tvm/tir/schedule/_type_checker.py
imports: import collections
  import collections.abc
  import functools
  import inspect
  from typing import Any, Callable, Dict, List, Optional, Tuple, TypeVar, Union
  import typing
label_desc: Use image node_id 7 for calling a global function with example usage: _type_check_err(x, name, expected) and returns: str, name, str, _type2str, str, _type2str, str