def _get_id_field_from_input_field_name(input_field_name: str) -> str:
    """
    Map plural input fields like children to the appropriate field child_ids in this
    case.
    """
    if input_field_name == "children":
        return "child_ids"
    return input_field_name.rstrip("s") + "_ids"