code: def load(cls, filename, encoding):
          
          if encoding is None:
              encoding = cls.encoding
  
          with io.open(filename, 'r', encoding=encoding) as fd:
              source = fd.read()
  
          if cls.normalize_newlines:
              source = source.replace('\r\n', '\n').replace('\r', '\n')
          return cls.loads(source)
docs: Load and parse serialized objects, properties, bools from file.