code: def test_split_ext():
      eq_(split_ext("file"), ("file", ""))
  
      eq_(split_ext("file.py"), ("file", ".py"))
      eq_(split_ext("file.tar.gz"), ("file", ".tar.gz"))
      eq_(split_ext("file.toolong.gz"), ("file.toolong", ".gz"))
  
      eq_(split_ext("file.a.b.c.d"), ("file", ".a.b.c.d"))
      eq_(split_ext("file.a.b.cccc.d"), ("file", ".a.b.cccc.d"))
      eq_(split_ext("file.a.b.ccccc.d"), ("file.a.b.ccccc", ".d"))
  
      eq_(split_ext("file.a.b..c"), ("file", ".a.b..c"))
  
file_path: datalad/datalad/support/tests/test_path.py
imports: import os
  from pathlib import PurePosixPath
  from ...tests.utils_pytest import SkipTest, assert_raises, eq_, with_tempfile
  from ...utils import chpwd, on_windows, rmtree
  from ..path import abspath, curdir, get_parent_paths, get_filtered_paths_, robust_abspath, split_ext
  import pytest
label_desc: Use image node_id 2 for calling a global function with example usage: test_split_ext() without return types