def print_pack(loadingContext: LoadingContext, uri: str) -> str:
    'Return a CWL serialization of the CWL document in JSON.'
    packed = pack(loadingContext, uri)
    if (len(cast(Sized, packed['$graph'])) > 1):
        return json_dumps(packed, indent=4, default=str)
    return json_dumps(cast(MutableSequence[CWLObjectType], packed['$graph'])[0], indent=4, default=str)
Return a CWL serialization of the CWL document in JSON.
def print_pack(loadingContext: LoadingContext, uri: str) -> str:
    
    packed = pack(loadingContext, uri)
    if (len(cast(Sized, packed['$graph'])) > 1):
        return json_dumps(packed, indent=4, default=str)
    return json_dumps(cast(MutableSequence[CWLObjectType], packed['$graph'])[0], indent=4, default=str)