code: def bag(directory, mets_basename, dest, identifier, in_place, manifestation_depth, mets, base_version_checksum, tag_file, skip_zip, processes):
      
      resolver = Resolver()
      workspace = Workspace(resolver, directory=directory, mets_basename=mets_basename)
      workspace_bagger = WorkspaceBagger(resolver)
      workspace_bagger.bag(
          workspace,
          dest=dest,
          ocrd_identifier=identifier,
          ocrd_manifestation_depth=manifestation_depth,
          ocrd_mets=mets,
          ocrd_base_version_checksum=base_version_checksum,
          processes=processes,
          tag_files=tag_file,
          skip_zip=skip_zip,
          in_place=in_place
      )
docs: Bag workspace as OCRD-ZIP at DEST