class_docstr: An execution trace of a scheduling program.
  
  A trace has two parts:
  1) The instructions invoked so far
  2) The random decisions made upon those instructions, if any
  
  A trace can be serialized to:
  1) Roundtrippable JSON format: can be saved to file and loaded back
  2) Python syntax: allows users to copy-paste the trace to reproduce the scheduling process
  
  A trace can be applied to a TensorIR schedule by re-applying all its instructions possibly with
  their decisions accordingly. Re-sampling is invoked if a sampling instruction doesn't have its
  corresponding decision; Otherwise the existing decision will be reused accordingly.
  
  Attributes
  ----------
  insts : List[Instruction]
      The instructions invoked so far in the program execution
  decisions : Dict[Instruction, DECISION_TYPE]
      The random decisions made upon those instructions
class_docstr_tok: ["An","execution","trace","of","a","scheduling","program",".","A","trace","has","two","parts",":","1",")","The","instructions","invoked","so","far","2",")","The","random","decisions","made","upon","those","instructions",",","if","any","A","trace","can","be","serialized","to",":","1",")","Roundtrippable","JSON","format",":","can","be","saved","to","file","and","loaded","back","2",")","Python","syntax",":","allows","users","to","copy-paste","the","trace","to","reproduce","the","scheduling","process","A","trace","can","be","applied","to","a","TensorIR","schedule","by","re-applying","all","its","instructions","possibly","with","their","decisions","accordingly",".","Re-sampling","is","invoked","if","a","sampling","instruction","does","n't","have","its","corresponding","decision",";","Otherwise","the","existing","decision","will","be","reused","accordingly",".","Attributes","--","--","--","--","--","insts",":","List","[","Instruction","]","The","instructions","invoked","so","far","in","the","program","execution","decisions",":","Dict","[","Instruction",",","DECISION_TYPE","]","The","random","decisions","made","upon","those","instructions"]
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: bool
  
      If true, use the formatter Black to format the TVMScript.
      If None, determine based on the "TVM_BLACK_FORMAT" environment
      variable.
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",":","bool","If","true",",","use","the","formatter","Black","to","format","the","TVMScript",".","If","None",",","determine","based","on","the","``","TVM_BLACK_FORMAT","''","environment","variable","."]
code: def show(
      self, style: Optional[str] = None, black_format: bool = False
  ) -> 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: bool
  
          If true, use the formatter Black to format the TVMScript.
          If None, determine based on the "TVM_BLACK_FORMAT" environment
          variable.
      """
      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 = bool(env and int(env))
  
      cprint(str(self), style=style, black_format=black_format)
  
imports: import os
  from typing import TYPE_CHECKING, Any, Callable, Dict, List, Optional
  from tvm._ffi import register_object
  from tvm.runtime import Object
  from ...ir import Array, Map, save_json
  from ...runtime import String
  from ..expr import FloatImm, IntImm
  from ..function import IndexMap
  from .None import _ffi_api
  from .instruction import ATTR_TYPE, INPUT_RV_TYPE, Instruction
label_desc: Use image node_id 11 for calling the Trace obj's underlying member method code with example usage: obj.show(style, black_format) without return types