code: def get_remaining_size(fd):
      pos = fd.tell()
      try:
          fd.seek(0, 2)
          return fd.tell() - pos
      finally:
          fd.seek(pos, 0)
  
imports: import warnings
  from collections import Counter
  from contextlib import nullcontext
  from .._utils import set_module
  from .None import numeric
  from .None import numerictypes
  from numpy.compat import os_fspath
  from .arrayprint import _get_legacy_print_mode
label_desc: Use image node_id 6 for calling a global function with example usage: get_remaining_size(fd) and returns: unknown