docs: def from_bytes(bytes_graph: bytes, check_version: bool = True) -> BELGraph:
      """Read a graph from bytes (the result of pickling the graph).
  
      :param bytes_graph: File or filename to write
      :param check_version: Checks if the graph was produced by this version of PyBEL
      """
      graph = loads(bytes_graph)
  
      raise_for_not_bel(graph)
      if check_version:
          raise_for_old_graph(graph)
  
      return graph