code: def _read_riff_chunk(fid):
      str1 = fid.read(4)  # File signature
      if str1 == b"RIFF":
          is_big_endian = False
          fmt = "<I"
      elif str1 == b"RIFX":
          is_big_endian = True
          fmt = ">I"
      else:
          # There are also .wav files with "FFIR" or "XFIR" signatures?
          raise ValueError(
              "File format {}... not " "understood.".format(repr(str1))
          )
  
      # Size of entire file
      file_size = struct.unpack(fmt, fid.read(4))[0] + 8
  
      str2 = fid.read(4)
      if str2 != b"WAVE":
          raise ValueError("Not a WAV file.")
  
      return file_size, is_big_endian
  
file_path: catboost/contrib/python/scipy/py2/scipy/io/wavfile.py
imports: from __future__ import division, print_function, absolute_import
  import sys
  import numpy
  import struct
  import warnings
label_desc: Use image node_id 4 for calling a global function with example usage: _read_riff_chunk(fid) and returns: file_size,  is_big_endian