from typing import Dict


def get_max_step_from_config(env_config: Dict) -> int:
    """Retrieves max_step from the hard-coded Isaac Gym environment config.

    Args:
        env_config (Dict): the environment config of the Isaac Gym task.

    Returns:
        int: the maximum episode length in steps.
    """
    if "maxEpisodeLength" in env_config:
        return env_config["maxEpisodeLength"]
    elif "episodeLength" in env_config:
        return env_config["episodeLength"]
    else:
        return 1000