code: def get_json(confounds_raw_path):
      """Return json data companion file to the confounds tsv file."""
      # Load JSON file
      return confounds_raw_path.replace("tsv", "json")
  
imports: import itertools
  import json
  import os
  import re
  import numpy
  import pandas
  from sklearn.preprocessing import scale
  from nilearn._utils.fmriprep_confounds import flag_single_gifti, is_camel_case
  from nilearn.interfaces.bids import parse_bids_filename
  from .load_confounds_scrub import extract_outlier_regressors
label_desc: Use image node_id 8 for calling a global function with example usage: get_json(confounds_raw_path) and returns: confounds_raw_path