code: def get_updates(
          self,
          display_all_distributions=False,
          verbose=False
      ):  # pragma: no cover
          
          if verbose:
              logging.basicConfig(
                  stream=sys.stdout,
                  level=logging.INFO,
                  format='%(message)s',
              )
              logging.info('Checking installed packages for updates...')
  
          updates = self._get_environment_updates(
              display_all_distributions=display_all_distributions
          )
  
          if updates:
              for update in updates:
                  logging.info(update)
  
          if updates and self._csv_file_name:
              self.write_updates_to_csv(updates)
  
          if updates and self._new_config:
              self.write_new_config(updates)
  
          return updates
docs: When called, get the environment updates and write updates to a CSV
          file and if a new config has been provided, write a new configuration
          file.
  
          Args:
              display_all_distributions (bool): Return distribution even if it is
                  up-to-date.
              verbose (bool): If ``True``, log to terminal to terminal.