code: def filesize(fileobj):
      
      current = fileobj.tell()
      fileobj.seek(0, 2)
      end = fileobj.tell()
      fileobj.seek(current)
      return end
docs: Return the number of bytes in the fileobj.
  
      This function seeks to the end of the file, and then back to the original position.