code: def get_variation_from_id(self, experiment_key, variation_id):
      
  
      variation_map = self.variation_id_map.get(experiment_key)
  
      if variation_map:
        variation = variation_map.get(variation_id)
        if variation:
          return variation
        else:
          self.logger.error('Variation ID "%s" is not in datafile.' % variation_id)
          self.error_handler.handle_error(exceptions.InvalidVariationException(enums.Errors.INVALID_VARIATION_ERROR))
          return None
  
      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 variation given experiment and variation ID.
  
      Args:
        experiment: Key representing parent experiment of variation.
        variation_id: ID representing the variation.
  
      Returns
        Object representing the variation.