class_docstr: A base class that enables the script() and show() method.
docstr: A sugar for print highlighted TVM script.
  
  Parameters
  ----------
  style : str, optional
      Pygmentize printing style, auto-detected if None.  See
      `tvm.script.highlight.cprint` for more details.
  
  black_format: Optional[bool]
  
      If true, use the formatter Black to format the TVMScript.
      If false, do not apply the auto-formatter.
  
      If None (default), determine the behavior based on the
      environment variable "TVM_BLACK_FORMAT".  If this
      environment variable is unset, set to the empty string, or
      set to the integer zero, black auto-formatting will be
      disabled.  If the environment variable is set to a
      non-zero integer, black auto-formatting will be enabled.
  
      Note that the "TVM_BLACK_FORMAT" environment variable only
      applies to the `.show()` method, and not the underlying
      `.script()` method.  The `.show()` method is intended for
      human-readable output based on individual user
      preferences, while the `.script()` method is intended to
      provided a consistent output regardless of environment.
  
  name : Optional[str] = None
      The name of the object
  show_meta : bool = False
      Whether to print the meta data of the object
  ir_prefix : str = "I"
      The prefix of AST nodes from tvm.ir
  tir_prefix : str = "T"
      The prefix of AST nodes from tvm.tir
  
  buffer_dtype : str = "float32"
      The default data type of buffer
  int_dtype : str = "int32"
      The default data type of integer
  float_dtype : str = "void"
      The default data type of float
  verbose_expr : bool = False
      Whether to print the detailed definition of each variable in the expression
  indent_spaces : int = 4
      The number of spaces for indentation
  print_line_numbers : bool = False
      Whether to print line numbers
  num_context_lines : int = -1
      The number of lines of context to print before and after the line to underline.
  syntax_sugar: bool = True
       Whether to output with syntax sugar, set false for complete printing.
  show_object_address: bool = False
       Whether to include the object's address as part of the TVMScript name
  path_to_underline : Optional[List[ObjectPath]] = None
      Object path to be underlined
  path_to_annotate : Optional[Dict[ObjectPath, str]] = None
      Object path to be annotated
  obj_to_underline : Optional[List[Object]] = None
      Object to be underlined
  obj_to_annotate : Optional[Dict[Object, str]] = None
      Object to be annotated
docstr_tok: ["A","sugar","for","print","highlighted","TVM","script",".","Parameters","--","--","--","--","--","style",":","str",",","optional","Pygmentize","printing","style",",","auto-detected","if","None",".","See","`","tvm.script.highlight.cprint","`","for","more","details",".","black_format",":","Optional","[","bool","]","If","true",",","use","the","formatter","Black","to","format","the","TVMScript",".","If","false",",","do","not","apply","the","auto-formatter",".","If","None","(","default",")",",","determine","the","behavior","based","on","the","environment","variable","``","TVM_BLACK_FORMAT","''",".","If","this","environment","variable","is","unset",",","set","to","the","empty","string",",","or","set","to","the","integer","zero",",","black","auto-formatting","will","be","disabled",".","If","the","environment","variable","is","set","to","a","non-zero","integer",",","black","auto-formatting","will","be","enabled",".","Note","that","the","``","TVM_BLACK_FORMAT","''","environment","variable","only","applies","to","the","`",".show","(",")","`","method",",","and","not","the","underlying","`",".script","(",")","`","method",".","The","`",".show","(",")","`","method","is","intended","for","human-readable","output","based","on","individual","user","preferences",",","while","the","`",".script","(",")","`","method","is","intended","to","provided","a","consistent","output","regardless","of","environment",".","name",":","Optional","[","str","]","=","None","The","name","of","the","object","show_meta",":","bool","=","False","Whether","to","print","the","meta","data","of","the","object","ir_prefix",":","str","=","``","I","''","The","prefix","of","AST","nodes","from","tvm.ir","tir_prefix",":","str","=","``","T","''","The","prefix","of","AST","nodes","from","tvm.tir","buffer_dtype",":","str","=","``","float32","''","The","default","data","type","of","buffer","int_dtype",":","str","=","``","int32","''","The","default","data","type","of","integer","float_dtype",":","str","=","``","void","''","The","default","data","type","of","float","verbose_expr",":","bool","=","False","Whether","to","print","the","detailed","definition","of","each","variable","in","the","expression","indent_spaces",":","int","=","4","The","number","of","spaces","for","indentation","print_line_numbers",":","bool","=","False","Whether","to","print","line","numbers","num_context_lines",":","int","=","-1","The","number","of","lines","of","context","to","print","before","and","after","the","line","to","underline",".","syntax_sugar",":","bool","=","True","Whether","to","output","with","syntax","sugar",",","set","false","for","complete","printing",".","show_object_address",":","bool","=","False","Whether","to","include","the","object","'s","address","as","part","of","the","TVMScript","name","path_to_underline",":","Optional","[","List","[","ObjectPath","]","]","=","None","Object","path","to","be","underlined","path_to_annotate",":","Optional","[","Dict","[","ObjectPath",",","str","]","]","=","None","Object","path","to","be","annotated","obj_to_underline",":","Optional","[","List","[","Object","]","]","=","None","Object","to","be","underlined","obj_to_annotate",":","Optional","[","Dict","[","Object",",","str","]","]","=","None","Object","to","be","annotated"]
code: def show(
      self,
      style: Optional[str] = None,
      black_format: Optional[bool] = None,
      *,
      name: Optional[str] = None,
      show_meta: bool = False,
      ir_prefix: str = "I",
      tir_prefix: str = "T",
      buffer_dtype: str = "float32",
      int_dtype: str = "int32",
      float_dtype: str = "void",
      verbose_expr: bool = False,
      indent_spaces: int = 4,
      print_line_numbers: bool = False,
      num_context_lines: int = -1,
      syntax_sugar: bool = True,
      show_object_address: bool = False,
      path_to_underline: Optional[List[ObjectPath]] = None,
      path_to_annotate: Optional[Dict[ObjectPath, str]] = None,
      obj_to_underline: Optional[List[Object]] = None,
      obj_to_annotate: Optional[Dict[Object, str]] = None,
  ) -> None:
      """A sugar for print highlighted TVM script.
  
      Parameters
      ----------
      style : str, optional
          Pygmentize printing style, auto-detected if None.  See
          `tvm.script.highlight.cprint` for more details.
  
      black_format: Optional[bool]
  
          If true, use the formatter Black to format the TVMScript.
          If false, do not apply the auto-formatter.
  
          If None (default), determine the behavior based on the
          environment variable "TVM_BLACK_FORMAT".  If this
          environment variable is unset, set to the empty string, or
          set to the integer zero, black auto-formatting will be
          disabled.  If the environment variable is set to a
          non-zero integer, black auto-formatting will be enabled.
  
          Note that the "TVM_BLACK_FORMAT" environment variable only
          applies to the `.show()` method, and not the underlying
          `.script()` method.  The `.show()` method is intended for
          human-readable output based on individual user
          preferences, while the `.script()` method is intended to
          provided a consistent output regardless of environment.
  
      name : Optional[str] = None
          The name of the object
      show_meta : bool = False
          Whether to print the meta data of the object
      ir_prefix : str = "I"
          The prefix of AST nodes from tvm.ir
      tir_prefix : str = "T"
          The prefix of AST nodes from tvm.tir
  
      buffer_dtype : str = "float32"
          The default data type of buffer
      int_dtype : str = "int32"
          The default data type of integer
      float_dtype : str = "void"
          The default data type of float
      verbose_expr : bool = False
          Whether to print the detailed definition of each variable in the expression
      indent_spaces : int = 4
          The number of spaces for indentation
      print_line_numbers : bool = False
          Whether to print line numbers
      num_context_lines : int = -1
          The number of lines of context to print before and after the line to underline.
      syntax_sugar: bool = True
           Whether to output with syntax sugar, set false for complete printing.
      show_object_address: bool = False
           Whether to include the object's address as part of the TVMScript name
      path_to_underline : Optional[List[ObjectPath]] = None
          Object path to be underlined
      path_to_annotate : Optional[Dict[ObjectPath, str]] = None
          Object path to be annotated
      obj_to_underline : Optional[List[Object]] = None
          Object to be underlined
      obj_to_annotate : Optional[Dict[Object, str]] = None
          Object to be annotated
  
      """
      from tvm.script.highlight import (  # pylint: disable=import-outside-toplevel
          cprint,
      )
  
      if black_format is None:
          env = os.environ.get("TVM_BLACK_FORMAT")
          black_format = env and int(env)
  
      cprint(
          self.script(
              name=name,
              show_meta=show_meta,
              ir_prefix=ir_prefix,
              tir_prefix=tir_prefix,
              buffer_dtype=buffer_dtype,
              int_dtype=int_dtype,
              float_dtype=float_dtype,
              verbose_expr=verbose_expr,
              indent_spaces=indent_spaces,
              print_line_numbers=print_line_numbers,
              num_context_lines=num_context_lines,
              syntax_sugar=syntax_sugar,
              show_object_address=show_object_address,
              path_to_underline=path_to_underline,
              path_to_annotate=path_to_annotate,
              obj_to_underline=obj_to_underline,
              obj_to_annotate=obj_to_annotate,
          ),
          style=style,
          black_format=black_format,
      )
  
file_path: tvm/python/tvm/runtime/script_printer.py
imports: import os
  from typing import Dict, List, Optional, Sequence
  from tvm._ffi import get_global_func, register_object
  from tvm.runtime import Object
  from .None import _ffi_node_api
  from .object_path import ObjectPath
label_desc: Use image node_id 2 for calling the Scriptable obj's underlying member method code with example usage: obj.show(style, black_format) without return types