<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def workspace_clone(ctx, clobber_mets, download, mets_url, workspace_dir):
 """ 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. """

    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)