parameters: (obj, key_path)
return_statement: return GetObjectByPath(obj[key_path[0]], key_path[1:]) if key_path else obj
docstring: Given an object, return its nth child based on a key path.
docstring_summary: Given an object, return its nth child based on a key path.
docstring_tokens: Given an object return its nth child based on a key path .
function: def GetObjectByPath(obj, key_path):
    """Given an object, return its nth child based on a key path.
    """
    return GetObjectByPath(obj[key_path[0]], key_path[1:]) if key_path else obj
function_tokens: def GetObjectByPath ( obj , key_path ) : return GetObjectByPath ( obj [ key_path [ 0 ] ] , key_path [ 1 : ] ) if key_path else obj