def _yaml_include_dir(self, loader, node):
        if not os.path.exists(node.value):
            return

        yamls = glob.glob(os.path.join(node.value, '*.yaml'))
        if not yamls:
            return

        content = '\n'

        for file in yamls:
            plugin, _ = os.path.splitext(os.path.basename(file))
            content += '    %s: !include %s\n' % (plugin, file)

        return yaml.load(content)
Sanitize IPv4 mapping in an expanded IPv6 address.
dataset/ETHPy150Open gooddata/smoker/smoker/server/daemon.py/Smokerd._yaml_include_dir--crossover with--dataset/ETHPy150Open django/django/django/utils/ipv6.py/_sanitize_ipv4_mapping