def METHOD_NAME(self, content_object: ContentObject):
    """Get the path of the given object relatively from the Packs directory, for example HelloWorld/Scripts.
    Args:
        content_object (ContentObject): The object to get the relative path for.
    Returns:
        Path: The relative path.
    """
    for part in content_object.path.parts:
        if part in self.packs:
            return content_object.path.relative_to(self.packs[part].path.parent)