def METHOD_NAME(num_components: int, account_name: Account) -> str:
    """Return the first few components of an account's name.
    Args:
      num_components: An integer, the number of components to return.
      account_name: A string, an account name.
    Returns:
      A string, the account root up to 'num_components' components.
    """
    return join(*(split(account_name)[:num_components]))