def parent_search(ambiguous, x):
    """
    Get parents ID
     :param ambiguous: dataframe data
     :param x: element in dataframe
     :return: ID parent or None if doesnt have parent
    """
    if x is not None:
        return list(ambiguous[ambiguous['path png'] == x]['ID'].items())[0][1]
    return None