class_docstr: A class that handles the parameters of Tensor Tracer.
class_docstr_tok: ["A","class","that","handles","the","parameters","of","Tensor","Tracer","."]
docstr: Returns the value of a TensorTracer flags.
  
  Args:
    wanted_flag_name: the name of the flag we are looking for.
  
  Returns:
    A pair where the first element indicates if the flag is
    found and the second element is the value of the flag.
  
  Raises:
    RuntimeError: If supposedly deadcode is reached.
docstr_tok: ["Returns","the","value","of","a","TensorTracer","flags",".","Args",":","wanted_flag_name",":","the","name","of","the","flag","we","are","looking","for",".","Returns",":","A","pair","where","the","first","element","indicates","if","the","flag","is","found","and","the","second","element","is","the","value","of","the","flag",".","Raises",":","RuntimeError",":","If","supposedly","deadcode","is","reached","."]
code: def get_flag_value(self, wanted_flag_name):
      """Returns the value of a TensorTracer flags.
  
      Args:
        wanted_flag_name: the name of the flag we are looking for.
  
      Returns:
        A pair where the first element indicates if the flag is
        found and the second element is the value of the flag.
  
      Raises:
        RuntimeError: If supposedly deadcode is reached.
      """
  
      tensor_tracer_flags = self._env.get(FLAGS_ENV_VAR)
      if not tensor_tracer_flags:
          return False, None
      pos = 0
      while True:
          match, has_value = TTParameters.match_next_flag(
              tensor_tracer_flags, pos
          )
          if not match:
              return False, None
          flag_name = match.group(1)
          if has_value:
              flag_value = match.group(2)
          else:
              flag_value = None
          if flag_name == wanted_flag_name:
              return True, flag_value
          pos = match.end()
      raise RuntimeError(
          "Invalid tensor tracer flag. Could not recognize %s."
          % flag_name
      )
  
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 17 for calling the TTParameters obj's underlying member method code with example usage: obj.get_flag_value(wanted_flag_name) and returns: False,  None, False,  None, True,  flag_value