def METHOD_NAME(self, state_machine_arn):
    """Get the tags for the Step Functions from the cache
    Will re-fetch the tags if they are out of date, or a log group is encountered
    which isn't in the tag list
    Args:
        state_machine_arn (str): the key we're getting tags from the cache for
    Returns:
        state_machine_tags (List[str]): the list of "key:value" Datadog tag strings
    """
    if self._is_expired():
        send_forwarder_internal_metrics("local_step_functions_tags_cache_expired")
        logger.debug(
            "Local cache expired for Step Functions tags. Fetching cache from S3"
        )
        self._refresh()
    state_machine_tags = self.tags_by_id.METHOD_NAME(state_machine_arn, None)
    if state_machine_tags is None:
        # If the custom tag fetch env var is not set to true do not fetch
        if not self.should_fetch_tags():
            logger.debug(
                "Not fetching custom tags because the env variable DD_FETCH_STEP_FUNCTIONS_TAGS"
                " is not set to true"
            )
            return []
        state_machine_tags = get_state_machine_tags(state_machine_arn) or []
        self.tags_by_id[state_machine_arn] = state_machine_tags
    return state_machine_tags