code: def get_shared_volume(workflow_workspace, shared_volume_root):
      
      workflow_workspace_relative_to_owner = workflow_workspace
      if os.path.isabs(workflow_workspace):
          workflow_workspace_relative_to_owner = \
              os.path.relpath(workflow_workspace, shared_volume_root)
      mount_path = os.path.join(shared_volume_root,
                                workflow_workspace_relative_to_owner)
      volume_mount = {
          "name": REANA_SHARED_VOLUME_NAME,
          "mountPath": mount_path,
          "subPath": workflow_workspace_relative_to_owner}
  
      if REANA_STORAGE_BACKEND == "CEPHFS":
          volume = get_k8s_cephfs_volume()
      else:
          volume = get_k8s_hostpath_volume(shared_volume_root)
  
      return volume_mount, volume
docs: Get shared CephFS/hostPath volume to a given job spec.
  
      :param workflow_workspace: Absolute path to the job's workflow workspace.
      :param shared_volume_root: Root path in the underlying storage backend.
      :returns: Tuple consisting of the Kubernetes volumeMount and the volume.