code: def reset(buffer):
      """Keep track of the buffer's current position and write to the end.
  
      This is a context manager meant to be used when adding data to the buffer.
      It eliminates the need for every function to be concerned with the
      position of the cursor in the buffer.
      """
      original_position = buffer.tell()
      buffer.seek(0, 2)
      yield
      buffer.seek(original_position, 0)
  
imports: import contextlib
  import io
  import os
  from uuid import uuid4
  import requests
  from .._compat import fields
label_desc: Use image node_id 5 for calling a global function with example usage: reset(buffer) without return types