code: def test_fwf_compression(
      compression_only, infer, compression_to_extension
  ):
      data = """1111111111
      2222222222
      3333333333""".strip()
  
      compression = compression_only
      extension = compression_to_extension[compression]
  
      kwargs = {"widths": [5, 5], "names": ["one", "two"]}
      expected = read_fwf(StringIO(data), **kwargs)
  
      data = bytes(data, encoding="utf-8")
  
      with tm.ensure_clean(filename="tmp." + extension) as path:
          tm.write_to_compressed(compression, path, data)
  
          if infer is not None:
              kwargs["compression"] = "infer" if infer else compression
  
          result = read_fwf(path, **kwargs)
          tm.assert_frame_equal(result, expected)
  
imports: from datetime import datetime
  from io import BytesIO, StringIO
  from pathlib import Path
  import numpy
  import pytest
  from pandas.errors import EmptyDataError
  import pandas
  from pandas import DataFrame, DatetimeIndex
  import pandas._testing
  from pandas.core.arrays import ArrowStringArray, StringArray
  from pandas.io.common import urlopen
  from pandas.io.parsers import read_csv, read_fwf
label_desc: Use image node_id 32 for calling a global function with example usage: test_fwf_compression(compression_only, infer, compression_to_extension) without return types