code: def test_sys_dir():
      sys_dir = nibe.get_nipy_system_dir()
      if os.name == "nt":
          assert sys_dir == r"C:\etc\nipy"
      elif os.name == "posix":
          assert sys_dir == r"/etc/nipy"
      else:
          assert sys_dir is None
  
file_path: nibabel/nibabel/tests/test_environment.py
imports: import os
  from os import environ
  from os.path import abspath
  from os.path import join
  import pytest
  from ..None import environment
label_desc: Use image node_id 4 for calling a global function with example usage: test_sys_dir() without return types