def retrieve_node(req_json, reference):
    '\n    Get the child node(s) from the dot-notation [reference] and parent [req_json].\n    For placement and other requests, there are encoded JSONs inside the request or policy,\n    so we need to expand it and then do a search over the parent plus expanded JSON.\n    '
    req_json_copy = copy.deepcopy(req_json)
    info = dot_notation(req_json_copy, reference)
    return (list_flatten(info) if isinstance(info, list) else info)
Get the child node(s) from the dot-notation [reference] and parent [req_json].
For placement and other requests, there are encoded JSONs inside the request or policy,
so we need to expand it and then do a search over the parent plus expanded JSON.
def retrieve_node(req_json, reference):
    '\n    Get the child node(s) from the dot-notation [reference] and parent [req_json].\n    For placement and other requests, there are encoded JSONs inside the request or policy,\n    so we need to expand it and then do a search over the parent plus expanded JSON.\n    '
    req_json_copy = copy.deepcopy(req_json)
    info = dot_notation(req_json_copy, reference)
    return (list_flatten(info) if isinstance(info, list) else info)