def lookup(self, path=None):
    '\n        Looks up a specific information value based on either a string pattern\n        or a path.\n\n        For example, the pattern "stats.roc_auc.labels.true" is the same as\n        the path ``[\'stats\', \'roc_auc\', \'labels\', True]``.\n\n        :Parameters:\n            path : `str` | `list`\n                The location of the information to lookup.\n        '
    if isinstance(path, str):
        path = util.parse_pattern(path)
    elif (path is None):
        path = []
    d = self
    remaining_path = list(path)
    while (len(path) > 0):
        key = path.pop(0)
        d = try_key(key, d)
        if hasattr(d, 'lookup'):
            return d.lookup(remaining_path)
        else:
            continue
    return d
Looks up a specific information value based on either a string pattern
or a path.

For example, the pattern "stats.roc_auc.labels.true" is the same as
the path ``['stats', 'roc_auc', 'labels', True]``.

:Parameters:
    path : `str` | `list`
        The location of the information to lookup.
def lookup(self, path=None):
    '\n        Looks up a specific information value based on either a string pattern\n        or a path.\n\n        For example, the pattern "stats.roc_auc.labels.true" is the same as\n        the path ``[\'stats\', \'roc_auc\', \'labels\', True]``.\n\n        :Parameters:\n            path : `str` | `list`\n                The location of the information to lookup.\n        '
    if isinstance(path, str):
        path = util.parse_pattern(path)
    elif (path is None):
        path = []
    d = self
    remaining_path = list(path)
    while (len(path) > 0):
        key = path.pop(0)
        d = try_key(key, d)
        if hasattr(d, 'lookup'):
            return d.lookup(remaining_path)
        else:
            continue
    return d