from typing import List


def get_nodes_for_homek8s_group(inventory, group_name) -> List[str]:
  """Return the nodes' names of the given group from the inventory as a list."""
  hosts_dict = inventory['all']['children']['homek8s']['children'][group_name]['hosts']
  if hosts_dict:
    return list(hosts_dict.keys())
  else:
    return []