parameters: (filename_or_stream)
return_statement: return (reader.records, reader.globals)
docstring: Reads a Caliper .cali file and returns its contents.
  
      Arguments:
          filename_or_stream:
              Stream object or the filename of the .cali file.
  
      Returns:
          (records, globals):
              A tuple with the Caliper snapshot records and globals. The first
              element contains the snapshot record as a list of dicts. The
              second element contains the global key:value attributes as a
              dict.
docstring_summary: Reads a Caliper .cali file and returns its contents.
docstring_tokens: Reads a Caliper . cali file and returns its contents .
function: def read_caliper_contents(filename_or_stream):
      """ Reads a Caliper .cali file and returns its contents.
  
      Arguments:
          filename_or_stream:
              Stream object or the filename of the .cali file.
  
      Returns:
          (records, globals):
              A tuple with the Caliper snapshot records and globals. The first
              element contains the snapshot record as a list of dicts. The
              second element contains the global key:value attributes as a
              dict.
      """
  
      reader = CaliperReader()
      reader.read(filename_or_stream)
  
      return (reader.records, reader.globals)
function_tokens: def read_caliper_contents ( filename_or_stream ) : reader = CaliperReader ( ) reader . read ( filename_or_stream ) return ( reader . records , reader . globals )