code: def load(cls, name, rc_file='~/.odoorpcrc'):
          
          data = session.get(name, rc_file)
          if data.get('type') != cls.__name__:
              raise error.InternalError(
                  "'{0}' session is not of type '{1}'".format(
                      name, cls.__name__))
          odoo = cls(
              host=data['host'],
              protocol=data['protocol'],
              port=data['port'],
              timeout=data['timeout'],
          )
          odoo.login(
              db=data['database'], login=data['user'], password=data['passwd'])
          return odoo
docs: Return a connected :class:`ODOO` session identified by `name`:
  
          .. doctest::
              :options: +SKIP
  
              >>> import odoorpc
              >>> odoo = odoorpc.ODOO.load('foo')
  
          Such sessions are stored with the
          :func:`save <odoorpc.ODOO.save>` method.
  
          *Python 2:*
  
          :raise: :class:`odoorpc.error.RPCError`
          :raise: `urllib2.URLError` (connection error)
  
          *Python 3:*
  
          :raise: :class:`odoorpc.error.RPCError`
          :raise: `urllib.error.URLError` (connection error)