code: def _make_events_filepath_spm_multimodal_fmri(_subject_data, session):
      key = f"trials_ses{session}"
      events_file_location = os.path.dirname(_subject_data[key])
      events_filename = f"session{session}_events.tsv"
      events_filepath = os.path.join(
          events_file_location, events_filename
      )
      return events_filepath
  
imports: import fnmatch
  import glob
  import json
  import numbers
  import os
  import re
  import warnings
  from io import BytesIO
  from pathlib import Path
  import nibabel
  import nibabel
  import numpy
  import pandas
  from scipy.io import loadmat
  from sklearn.utils import Bunch
  from nilearn.image import get_data
  from .._utils import check_niimg, fill_doc
  from .._utils.numpy_conversions import csv_to_array
  from ._utils import fetch_files, fetch_single_file, filter_columns, get_dataset_descr, get_dataset_dir, read_md5_sum_file, tree, uncompress_file
label_desc: Use image node_id 40 for calling a global function with example usage: _make_events_filepath_spm_multimodal_fmri(_subject_data, session) and returns: events_filepath