code: def list_tags() -> Optional[Dict[str, Target]]:
      """Returns a dict of tags, which maps each tag name to its corresponding target.
  
      Returns
      -------
      tag_dict : Optional[Dict[str, Target]]
          The dict of tags mapping each tag name to its corresponding target.
          None if TVM is built in runtime-only mode.
      """
      if hasattr(_ffi_api, "TargetTagListTags"):
          return _ffi_api.TargetTagListTags()
      return None
  
imports: from typing import Any, Dict, Optional
  from .None import _ffi_api
  from .target import Target
label_desc: Use image node_id 1 for calling a global function with example usage: list_tags() and returns: None, _ffi_api