class_docstr: A class that handles the parameters of Tensor Tracer.
code: def _check_flag_errors(self):
      if self.trace_mode in (
          TRACE_MODE_SUMMARY,
          TRACE_MODE_FULL_TENSOR_SUMMARY,
      ):
          if not self.trace_dir:
              raise ValueError(
                  "trace_dir must be explicitly provided in "
                  "TENSOR_TRACER_FLAGS when summary mode is used."
              )
  
imports: import os
  import os.path
  import re
  from absl import flags
  from tensorflow.python.ops import linalg_ops
  from tensorflow.python.ops import math_ops
  from tensorflow.python.platform import tf_logging
label_desc: Use image node_id 2 for calling the TTParameters obj's underlying member method code with example usage: obj._check_flag_errors() without return types