code: def import_settings(self, filename):
          '''Import settings from a JSON file
  
          Args:
              filename (string): name of the file to import from
          '''
  
          if not os.path.isfile(filename):
              self._logger.log(
                  'error',
                  'File: {} not found, continuing with default settings'.format(
                      filename
                  )
              )
          else:
              with open(filename, 'r') as jsonFile:
                  data = json.load(jsonFile)
                  self._value_ranges = data['valueRanges']
                  self._best_values = data['best_values']
                  self._best_values = []
                  for index, value in enumerate(data['best_values']):
                      if self._value_ranges[index] == 'int':
                          self._best_values.append(int(value))
                      else:
                          self._best_values.append(float(value))
                  self.minimize = data['minimize']
                  self.num_employers = data['num_employers']
                  self._best_score = float(data['best_score'])
                  self.limit = data['limit'f import_settings(self, filename):
          '''Import settings from a JSON file
  
          Args:
              filename (string): name of the file to import from
          '''
  
          if not os.path.isfile(filename):
              self._logger.log(
                  'error',
                  'File: {} not found, continuing with default settings'.format(
                      filename
                  )
              )
          else:
              with open(filename, 'r') as jsonFile:
                  data = json.load(jsonFile)
                  self._value_ranges = data['valueRanges']
                  self._best_values = data['best_values']
                  self._best_values = []
                  for index, value in enumerate(data['best_values']):
                      if self._value_ranges[index] == 'int':
                          self._best_values.append(int(value))
                      else:
                          self._best_values.append(float(value))
                  self.minimize = data['minimize']
                  self.num_employers = data['num_employers']
                  self._best_score = float(data['best_score'])
                  self.limit = data['limit']
docs: Import settings from a JSON file
  
          Args:
              filename (string): name of the file to import from