code: def opts2str(params):
      """
      convert params to filename
      """
      return (
          str(params)
          .replace("{", "")
          .replace("}", "")
          .replace("'", "")
          .replace(": ", "-")
          .replace(", ", "_")
      )
  
imports: import numpy
  import pandas
  import nibabel
  import nilearn
  from nilearn.input_data import NiftiMasker
  import nilearn.plotting
  import matplotlib
  import matplotlib.pyplot
  import holoviews
  import timecorr
  import os
  from brainiak.factoranalysis.htfa import HTFA
  import warnings
  import seaborn
label_desc: Use image node_id 2 for calling a global function with example usage: opts2str(params) and returns: str