docs: def open_sciobj_file_by_pid_ctx(pid, write=False):
      """Open the file containing the Science Object bytes of ``pid`` in the default
      location within the tree of the local SciObj store.
  
      If ``write`` is True, the file is opened for writing and any missing directories are
      created. Return the file handle and file_url with the file location in a suitable
      form for storing in the DB.
  
      If nothing was written to the file, it is deleted.
  
      """
      abs_path = get_abs_sciobj_file_path_by_pid(pid)
      with open_sciobj_file_by_path_ctx(abs_path, write) as sciobj_file:
          yield sciobj_file