@staticmethod
def __check_inner_object(obj: dict, child: str) ->dict:
    """
        Check inner object for named child dict key
        We often get a dict object which contains a single key. The value of this key is itself a dict
        and we need to know if the child key name exists on either the outer dict or the inner dict
        return the inner dict if the child key name is found there, or punt and return the outer dict
        otherwise

        :param obj: dict to check for child key name
        :param child: name of a key we want to find
        :return: inner dict if it contains the child key, outer dict otherwise
        """
    if child in obj:
        return obj
    if len(obj.keys()) == 1:
        inner_obj = obj[list(obj)[0]]
        if child in inner_obj:
            return inner_obj
    return obj
