code: def _GetInstanceConfig(self):
      
      try:
        instance_data = self.metadata_dict['instance']['attributes']
      except KeyError:
        instance_data = {}
        self.logger.warning('Instance attributes were not found.')
  
      try:
        project_data = self.metadata_dict['project']['attributes']
      except KeyError:
        project_data = {}
        self.logger.warning('Project attributes were not found.')
  
      return (instance_data.get('google-instance-configs')
              or project_data.get('google-instance-configs'))
docs: Get the instance configuration specified in metadata.
  
      Returns:
        string, the instance configuration data.