code: def workspace_clone(ctx, clobber_mets, download, mets_url, workspace_dir):
      
      workspace = ctx.resolver.workspace_from_url(
          mets_url,
          dst_dir=os.path.abspath(workspace_dir if workspace_dir else mkdtemp(prefix=TMP_PREFIX)),
          mets_basename=ctx.mets_basename,
          clobber_mets=clobber_mets,
          download=download,
      )
      workspace.save_mets()
      print(workspace.directory)
docs: Create a workspace from a METS_URL and return the directory
  
      METS_URL can be a URL, an absolute path or a path relative to $PWD.
  
      If WORKSPACE_DIR is not provided, creates a temporary directory.