code: def get_account(self, account):
          '''
          check the account whether in the protfolio dict or not
          :param account:  QA_Account
          :return: QA_Account if in dict
                   None not in list
          '''
          try:
              return self.get_account_by_cookie(account.account_cookie)
          except:
              QA_util_log_info(
                  'Can not find this account with cookies %s' %
                  account.account_cookie
              )
              return Nonf get_account(self, account):
          '''
          check the account whether in the protfolio dict or not
          :param account:  QA_Account
          :return: QA_Account if in dict
                   None not in list
          '''
          try:
              return self.get_account_by_cookie(account.account_cookie)
          except:
              QA_util_log_info(
                  'Can not find this account with cookies %s' %
                  account.account_cookie
              )
              return None
docs: check the account whether in the protfolio dict or not
          :param account:  QA_Account
          :return: QA_Account if in dict
                   None not in list