code: def deserialize(raw):
          
          from ofxclient.institution import Institution
          institution = Institution.deserialize(raw['institution'])
  
          del raw['institution']
          del raw['local_id']
  
          if 'broker_id' in raw:
              a = BrokerageAccount(institution=institution, **raw)
          elif 'routing_number' in raw:
              a = BankAccount(institution=institution, **raw)
          else:
              a = CreditCardAccount(institution=institution, **raw)
          return a
docs: Instantiate :py:class:`ofxclient.Account` subclass from dictionary
  
          :param raw: serilized Account
          :param type: dict as  given by :py:meth:`~ofxclient.Account.serialize`
          :rtype: subclass of :py:class:`ofxclient.Account`