from typing import List
import gc


def get_child_ids(obj: object) -> List[int]:
    """
    Return children of the provided object using gc.get_referents

    :param obj: The object
    :return: List of object ids
    """
    return [id(child) for child in gc.get_referents(obj)]