def METHOD_NAME(self, function_id: str) -> DynamicSamplingLogState:
    default = DynamicSamplingLogState()
    if self.context_data is None:
        return default
    else:
        return self.context_data.get(function_id, default)