class_docstr: A class that handles the parameters of Tensor Tracer.
docstr: Returns the match for the next TensorTracer flag.
  
  Args:
     tt_flags: a string that contains the flags.
     pos: where in flags to start the search.
  
  Returns:
     A pair where the first element is the regular-expression
     match found and the second element indicates if the match
     has a value.
docstr_tok: ["Returns","the","match","for","the","next","TensorTracer","flag",".","Args",":","tt_flags",":","a","string","that","contains","the","flags",".","pos",":","where","in","flags","to","start","the","search",".","Returns",":","A","pair","where","the","first","element","is","the","regular-expression","match","found","and","the","second","element","indicates","if","the","match","has","a","value","."]
code: def match_next_flag(tt_flags, pos):
      """Returns the match for the next TensorTracer flag.
  
      Args:
         tt_flags: a string that contains the flags.
         pos: where in flags to start the search.
  
      Returns:
         A pair where the first element is the regular-expression
         match found and the second element indicates if the match
         has a value.
      """
  
      match = _FLAG_DOUBLE_QUOTE_PAT.match(tt_flags, pos)
      if match:
          return match, True
      match = _FLAG_SINGLE_QUOTE_PAT.match(tt_flags, pos)
      if match:
          return match, True
      match = _FLAG_NO_QUOTE_PAT.match(tt_flags, pos)
      if match:
          return match, True
      match = _FLAG_NO_EQUAL_PAT.match(tt_flags, pos)
      if match:
          # The flag is found but is not given a value.
          return match, False
      # The flag is not found.
      return None, False
  
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 9 for calling the TTParameters obj's underlying member method code with example usage: obj.match_next_flag(tt_flags, pos) and returns: None,  False, match,  True, match,  True, match,  True, match,  False