code: def get_layout_locations(version, base_path, dsid):
      """Return dataset-related path in a RIA store
  
      Parameters
      ----------
      version : int
        Layout version of the store.
      base_path : Path
        Base path of the store.
      dsid : str
        Dataset ID
  
      Returns
      -------
      Path, Path, Path
        The location of the bare dataset repository in the store,
        the directory with archive files for the dataset, and the
        annex object directory are return in that order.
      """
      if version == 1:
          dsgit_dir = base_path / dsid[:3] / dsid[3:]
          archive_dir = dsgit_dir / "archives"
          dsobj_dir = dsgit_dir / "annex" / "objects"
          return dsgit_dir, archive_dir, dsobj_dir
      else:
          raise ValueError(
              "Unknown layout version: {}. Supported: {}"
              "".format(version, known_versions_dst)
          )
  
file_path: datalad/datalad/customremotes/ria_utils.py
imports: import logging
  from pathlib import Path
label_desc: Use image node_id 1 for calling a global function with example usage: get_layout_locations(version, base_path, dsid) and returns: dsgit_dir,  archive_dir,  dsobj_dir