class_docstr: Image plugin for the Windows Bitmap format (BMP) 
class_docstr_tok: ["Image","plugin","for","the","Windows","Bitmap","format","(","BMP",")"]
docstr: Open file, check magic number and read header 
docstr_tok: ["Open","file",",","check","magic","number","and","read","header"]
code: def _open(self):
      """Open file, check magic number and read header"""
      # read 14 bytes: magic number, filesize, reserved, header final offset
      head_data = self.fp.read(14)
      # choke if the file does not have the required magic bytes
      if head_data[0:2] != b"BM":
          raise SyntaxError("Not a BMP file")
      # read the start position of the BMP image data (u32)
      offset = i32(head_data[10:14])
      # load bitmap information (offset=raster info)
      self._bitmap(offset=offset)
  
file_path: catboost/contrib/python/Pillow/py2/PIL/BmpImagePlugin.py
imports: from .None import Image, ImageFile, ImagePalette
  from ._binary import i8, i16le, i32le, o8, o16le, o32le
label_desc: Use image node_id 2 for calling the BmpImageFile obj's underlying member method code with example usage: obj._open() without return types