code: def cmp_func(v):
      """Comparison func tests against version 2.0"""
      return (float(v) > 2) - (float(v) < 2)
  
file_path: nibabel/nibabel/tests/test_deprecator.py
imports: import sys
  import warnings
  from functools import partial
  from textwrap import indent
  import pytest
  from nibabel.deprecator import TESTCLEANUP, TESTSETUP, Deprecator, ExpiredDeprecationError, _add_dep_doc, _ensure_cr
  from ..testing import clear_and_catch_warnings
label_desc: Use image node_id 3 for calling a global function with example usage: cmp_func(v) and returns: unknown