code: def test_add_absolute_paths():
      meta = {
          "col_relative_path": "collection_1",
          "col_absolute_path": os.path.join(
              "dir_0", "neurovault", "collection_1"
          ),
      }
      meta = neurovault._add_absolute_paths(
          os.path.join("dir_1", "neurovault"), meta, force=False
      )
  
      assert meta["col_absolute_path"] == os.path.join(
          "dir_0", "neurovault", "collection_1"
      )
  
      meta = neurovault._add_absolute_paths(
          os.path.join("dir_1", "neurovault"), meta, force=True
      )
  
      assert meta["col_absolute_path"] == os.path.join(
          "dir_1", "neurovault", "collection_1"
      )
  
      meta = {"id": 0}
      meta_transformed = neurovault._add_absolute_paths(
          os.path.join("dir_1", "neurovault"), meta, force=True
      )
  
      assert meta == meta_transformed
  
imports: import hashlib
  import json
  import os
  import re
  import stat
  from urllib import parse
  import numpy
  import pandas
  import pytest
  import requests
  from nilearn._utils.data_gen import generate_fake_fmri
  from nilearn.conftest import _rng
  from nilearn.datasets import neurovault
  from nilearn.image import load_img
label_desc: Use image node_id 31 for calling a global function with example usage: test_add_absolute_paths() without return types