code: def open(path, mode=None, ac_parser=None, **options):
      
      psr = find(path, forced_type=ac_parser)
  
      if mode is not None and mode.startswith('w'):
          return psr.wopen(path, **options)
  
      return psr.ropen(path, **options)
docs: Open given configuration file with appropriate open flag.
  
      :param path: Configuration file path
      :param mode:
          Can be 'r' and 'rb' for reading (default) or 'w', 'wb' for writing.
          Please note that even if you specify 'r' or 'w', it will be changed to
          'rb' or 'wb' if selected backend, xml and configobj for example, for
          given config file prefer that.
      :param options:
          Optional keyword arguments passed to the internal file opening APIs of
          each backends such like 'buffering' optional parameter passed to
          builtin 'open' function.
  
      :return: A file object or None on any errors
      :raises: ValueError, UnknownProcessorTypeError, UnknownFileTypeError