code: def test_repr_niimgs_force_long_names():
      long_name = "this-is-a-very-long-name-for-a-nifti-file.nii"
      # Force long display of long names
      assert _utils._repr_niimgs(long_name, shorten=False) == long_name
  
      # Tests with list of file paths
      assert _utils._repr_niimgs(["test", "retest"]) == "[test, retest]"
      assert (
          _utils._repr_niimgs(["test", "retest"], shorten=False)
          == "[test, retest]"
      )
  
      # Force display, all 3 names are displayed
      list_of_size_3 = [
          "this-is-a-very-long-name-for-a-nifti-file.nii",
          "this-is-another-very-long-name-for-a-nifti-file.nii",
          "this-is-again-another-very-long-name-for-a-nifti-file.nii",
      ]
      long_rep_list_of_size_3 = (
          "[this-is-a-very-long-name-for-a-nifti-file.nii,"
          " this-is-another-very-long-name-for-a-nifti-file.nii,"
          " this-is-again-another-very-long-name-for-a-nifti-file.nii]"
      )
      assert (
          _utils._repr_niimgs(list_of_size_3, shorten=False)
          == long_rep_list_of_size_3
      )
  
      long_list_small_names = [
          "test",
          "retest",
          "reretest",
          "rereretest",
      ]
      long_rep_long_list_small_names = (
          "[test,\n retest,\n reretest,\n rereretest]"
      )
  
      assert (
          _utils._repr_niimgs(long_list_small_names, shorten=False)
          == long_rep_long_list_small_names
      )
  
      # Long names - Force full display in pretty print style for readability
      list_of_size_4 = list_of_size_3 + [
          "this-is-again-another-super-very-long-name-for-a-nifti-file.nii"
      ]
      long_rep_long_list_long_names = (
          long_rep_list_of_size_3[:-1].replace(",", ",\n")
          + ",\n "
          + "this-is-again-another-super-very-long-name-for-a-nifti-file.nii]"
      )
  
      assert (
          _utils._repr_niimgs(list_of_size_4, shorten=False)
          == long_rep_long_list_long_names
      )
  
imports: import os
  import re
  import tempfile
  from pathlib import Path
  import nibabel
  import numpy
  import pytest
  from nibabel import Nifti1Image
  from numpy.testing import assert_array_equal
  import nilearn
  from nilearn import _utils
  from nilearn._utils import niimg_conversions, testing
  from nilearn._utils.exceptions import DimensionError
  from nilearn._utils.niimg_conversions import iter_check_niimg
  from nilearn._utils.testing import assert_memory_less_than, with_memory_profiler
  from nilearn.image import get_data
label_desc: Use image node_id 16 for calling a global function with example usage: test_repr_niimgs_force_long_names() without return types