code: def get_experiment_from_key(self, experiment_key):
      
  
      experiment = self.experiment_key_map.get(experiment_key)
  
      if experiment:
        return experiment
  
      self.logger.error('Experiment key "%s" is not in datafile.' % experiment_key)
      self.error_handler.handle_error(exceptions.InvalidExperimentException(enums.Errors.INVALID_EXPERIMENT_KEY_ERROR))
      return None
docs: Get experiment for the provided experiment key.
  
      Args:
        experiment_key: Experiment key for which experiment is to be determined.
  
      Returns:
        Experiment corresponding to the provided experiment key.