code: def readline(f: io.RawIOBase):
      # From: https://github.com/python/cpython/blob/d27e2f4d118e7a9909b6a3e5da06c5ff95806a85/Lib/_pyio.py#L525
      res = bytearray()
      while True:
          b = f.read(1)
          if not b:
              break
          res += b
          if res.endswith(b"\n"):
              break
      return bytes(res)
  
imports: import copy
  import io
  import json
  import os
  import posixpath
  import re
  import shutil
  import sys
  import tempfile
  import time
  import urllib
  from contextlib import closing, contextmanager
  from functools import partial
  from hashlib import sha256
  from pathlib import Path
  from typing import List, Optional, Type, TypeVar, Union
  from urllib.parse import urljoin, urlparse
  import requests
  from datasets import DownloadConfig
  from datasets.utils.extract import ExtractManager
  from datasets.utils.filelock import FileLock
  from ..None import __version__, config
  from .None import logging
label_desc: Use image node_id 27 for calling a global function with example usage: readline(f) and returns: bytes