code: def _init_org(self):
          
          self.logger.info(
              "Verifying and refreshing credentials for the specified org: {}.".format(
                  self.org_config.name
              )
          )
          orig_config = self.org_config.config.copy()
  
          # attempt to refresh the token, this can throw...
          self.org_config.refresh_oauth_token(self.project_config.keychain)
  
          if self.org_config.config != orig_config:
              self.logger.info("Org info has changed, updating org in keychain")
              self.project_config.keychain.set_org(self.org_config)
docs: Test and refresh credentials to the org specified.