code: def test_smart_open_without_suffix():
      with TemporaryDirectory() as temp:
          fname = os.path.join(temp, "test")
          _touch_file(fname, compressed=True, empty=False)
          with utils.smart_open(fname) as fin:
              assert len(fin.readlines()) == 10
          _touch_file(fname, compressed=False, empty=False)
          with utils.smart_open(fname) as fin:
              assert len(fin.readlines()) == 10
  
imports: import gzip
  import math
  import os
  import re
  from tempfile import TemporaryDirectory
  import unittest
  import numpy
  import pytest
  import torch
  from sockeye import __version__
  from sockeye import constants
  from sockeye import utils
label_desc: Use image node_id 18 for calling a global function with example usage: test_smart_open_without_suffix() without return types