parameters: ()
return_statement: return should_record_collection[0]
docstring: Returns boolean Tensor which is true if summaries should be recorded.
docstring_summary: Returns boolean Tensor which is true if summaries should be recorded.
docstring_tokens: Returns boolean Tensor which is true if summaries should be recorded .
function: def should_record_summaries():
    """Returns boolean Tensor which is true if summaries should be recorded."""
    should_record_collection = ops.get_collection(_SHOULD_RECORD_SUMMARIES_NAME)
    if not should_record_collection:
      return False
    if len(should_record_collection) != 1:
      raise ValueError(
          "More than one tensor specified for whether summaries "
          "should be recorded: %s" % should_record_collection)
    return should_record_collection[0]
function_tokens: def should_record_summaries ( ) : should_record_collection = ops . get_collection ( _SHOULD_RECORD_SUMMARIES_NAME ) if not should_record_collection : return False if len ( should_record_collection ) != 1 : raise ValueError ( "More than one tensor specified for whether summaries " "should be recorded: %s" % should_record_collection ) return should_record_collection [ 0 ]