def __init__(self, assets_dir=None, requirements_file="requirements.yml"):
        self.assets_dir = assets_dir or Path(".") / "assets"
        self.requirements = GroupedRequirements()
        self.requirements.load(requirements_file)
        self.temp_dir = mkdtemp()
def json_usage(root):
    root = os.path.abspath(root)
    result = [['Path', 'Parent', 'Usage']]
    result.extend(entry for entry in usage_iter(root))
    return json.dumps(result)