code: def _schaefer_labels(match, requests):
      # fails if requests is not passed
      info = match.groupdict()
      label_names = [f"{info['network']}Networks"] * int(info["n_rois"])
      labels = pd.DataFrame({"label": label_names})
      return labels.to_csv(sep="\t", header=False).encode("utf-8")
  
imports: import itertools
  import os
  import re
  from pathlib import Path
  import nibabel
  import numpy
  import pandas
  import pytest
  from numpy.testing import assert_array_equal
  from nilearn._utils import data_gen
  from nilearn._utils.testing import serialize_niimg
  from nilearn.conftest import _rng
  from nilearn.datasets import atlas
  from nilearn.datasets._utils import fetch_files
  from nilearn.datasets.tests._testing import dict_to_archive
  from nilearn.image import get_data
label_desc: Use image node_id 30 for calling a global function with example usage: _schaefer_labels(match, requests) and returns: labels