'Find and parse a config from our live config with this given name.
:param name string - a given feature name
:return dict - a dictionary with at least "enabled". May include more
depending on the enabled type.'

def _parse_config(self, name, config_name=None, config_str=None):

    if (not config_name):
        config_name = ('feature_%s' % name)
    if (not config_str):
        config_str = self.world.live_config(config_name)
    if ((not config_str) or (config_str == FeatureState.GLOBALLY_OFF)):
        return self.DISABLED_CFG
    if (config_str == FeatureState.GLOBALLY_ON):
        return self.ENABLED_CFG
    try:
        config = json.loads(config_str)
    except (ValueError, TypeError) as e:
        g.log.warning('Could    not    load    config    for    name    %r    -    %r', config_name, e)
        return self.DISABLED_CFG
    if (not isinstance(config, dict)):
        g.log.warning('Config    not    dict,    on    or    off:    %r', config_name)
        return self.DISABLED_CFG
    return config
