code: def test_world_files(fname, expected):
      if sys.platform == "win32":
          fname = fname.replace("/", "\\")
          expected = [f.replace("/", "\\") for f in expected]
          if fname.startswith("\\"):
              fname = "c:" + fname
              expected = ["c:" + f for f in expected]
  
      assert cimg_nest.Img.world_files(fname) == expected
  
imports: import io
  from pathlib import Path
  import pickle
  import shutil
  import sys
  import warnings
  import numpy
  from numpy.testing import assert_array_almost_equal, assert_array_equal
  from PIL import Image
  import pytest
  import shapely.geometry
  from cartopy import config
  import cartopy.io.img_nest
  import cartopy.io.img_tiles
label_desc: Use image node_id 1 for calling a global function with example usage: test_world_files(fname, expected) without return types