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 True if the given flag is on.
docstr_tok: ["Returns","True","if","the","given","flag","is","on","."]
code: def is_flag_on(self, flag_name):
      """Returns True if the given flag is on."""
  
      found, flag_value = self.get_flag_value(flag_name)
      if not found:
          return False
      if flag_value is None:
          return True
      # Depends on the flag value.
      flag_value = flag_value.lower()
      enabled = flag_value in ["1", "t", "true", "y", "yes"]
      return enabled
  
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 19 for calling the TTParameters obj's underlying member method code with example usage: obj.is_flag_on(flag_name) and returns: enabled, False, True