def get_package_from_handle(package_handle):
if isinstance(package_handle, dict):<EOL><INDENT>package_handle = ResourceHandle.from_dict(package_handle)<EOL><DEDENT>package_resource = package_repository_manager.get_resource_from_handle(package_handle)<EOL>package = Package(package_resource)<EOL>return package<EOL>
Create a package given its handle (or serialized dict equivalent)

    Args:
        package_handle (`ResourceHandle` or dict): Resource handle, or
            equivalent serialized dict representation from
            ResourceHandle.to_dict

    Returns:
        `Package`.