code: def flip():
      def f(parts):
          if not parts:
              return {}
          keys = list(parts.keys())
          keys = [keys[-1]] + keys[:-1]
          return dict(zip(keys, parts.values()))
  
      return f
  
file_path: nilearn/nilearn/experimental/surface/tests/conftest.py
imports: from typing import Callable
  import numpy
  import pytest
  from nilearn.experimental.surface import InMemoryMesh, PolyMesh, SurfaceImage, load_fsaverage
label_desc: Use image node_id 5 for calling a global function with example usage: flip() and returns: f, dict, dict