docstr: Saves content in tmp location and returns saved data
docstr_tok: ["Saves","content","in","tmp","location","and","returns","saved","data"]
code: def _save_and_return_content(file: File):
      """Saves content in tmp location and returns saved data"""
      with tmp_context() as tmp:
          file_name = "saved_file"
          file_path = f"{tmp}/{file_name}.{file.extension}"
          file._save(file_path)
          with open(file_path, "rb") as f:
              return f.read()
  
imports: import pickle
  import unittest
  from io import BytesIO, StringIO
  import numpy
  from bokeh.plotting import figure
  from PIL import Image
  from neptune.exceptions import NeptuneException, StreamAlreadyUsedException
  from neptune.internal.types.file_types import FileType, InMemoryComposite
  from neptune.internal.utils.images import _get_pil_image_data
  from neptune.types import File
  from tests.e2e.utils import tmp_context
label_desc: Use image node_id 4 for calling the TestFile obj's underlying member method code with example usage: obj._save_and_return_content(file) and returns: f