code: def test_dataset_from_remote_filename(fs, patchs, monkeypatch):
      uri, path_to, _, write, _, _, _ = fs
      mock_patchs(monkeypatch, patchs)
  
      fname = path_to("test_dataset_from_remote_filename")
  
      body = get_readable_body(uri)
      lines = body.splitlines(True)
      write(fname, body)
  
      # TextLineDataset
      line_dataset = tf.data.TextLineDataset(fname)
      count_line_dataset = 0
      for line in line_dataset:
          assert line == lines[count_line_dataset].rstrip()
          count_line_dataset += 1
      assert count_line_dataset == len(lines)
  
imports: import functools
  import os
  import posixpath
  import random
  import socket
  import sys
  import time
  from urllib.parse import urlparse
  import pytest
  import tensorflow
  import tensorflow_io
label_desc: Use image node_id 16 for calling a global function with example usage: test_dataset_from_remote_filename(fs, patchs, monkeypatch) without return types