class_docstr: A class that handles the parameters of Tensor Tracer.
class_docstr_tok: ["A","class","that","handles","the","parameters","of","Tensor","Tracer","."]
docstr: Validates if the TensorTrace flags passed are valid.
docstr_tok: ["Validates","if","the","TensorTrace","flags","passed","are","valid","."]
code: def _validate_flag_names(self):
      """Validates if the TensorTrace flags passed are valid."""
      tensor_tracer_flags = self._env.get(FLAGS_ENV_VAR)
      if not tensor_tracer_flags:
          return
      pos = 0
      while True:
          match, _ = TTParameters.match_next_flag(
              tensor_tracer_flags, pos
          )
          if not match:
              break
          flag_name = match.group(1)
          if flag_name not in VALID_FLAG_NAMES:
              raise ValueError(
                  'The flag name "%s" passed via the environment variable "%s" '
                  "is invalid. Valid flag names are:"
                  "\n%s" % (flag_name, FLAGS_ENV_VAR, VALID_FLAG_NAMES)
              )
          pos = match.end()
  
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 10 for calling the TTParameters obj's underlying member method code with example usage: obj._validate_flag_names() without return types