code: def update(self):
          
          # Init new stats
          stats = self.get_init_value()
  
          # Requests lib is needed to get stats from the Cloud API
          if import_error_tag:
              return stats
  
          # Update the stats
          if self.input_method == 'local':
              stats = self.OPENSTACK.stats
              # Example:
              # Uncomment to test on physical computer
              # stats = {'ami-id': 'ami-id',
              #                    'instance-id': 'instance-id',
              #                    'instance-type': 'instance-type',
              #                    'region': 'placement/availability-zone'}
  
          # Update the stats
          self.stats = stats
  
          return self.stats
docs: Update the cloud stats.
  
          Return the stats (dict)