# Path: tensorflow_decision_forests/component/inspector/blob_sequence.py
# class Reader(object):
# class Writer(object):
#   def __init__(self, path: str):
#   def open(self, path: str):
#   def close(self):
#   def read(self) -> Optional[bytes]:
#   def __enter__(self):
#   def __exit__(self, exc_type, exc_val, exc_tb):
#   def __iter__(self) -> Iterator[bytes]:
#   def __enter__(self):
#   def __exit__(self, exc_type, exc_val, exc_tb):
#   def __init__(self, path: Optional[str] = None):
#   def open(self, path: str):
#   def write(self, blob: bytes):
#   def close(self):


import os
import tensorflow as tf
from absl import flags
from absl import logging
from absl.testing import parameterized
from tensorflow_decision_forests.component.inspector import blob_sequence
from yggdrasil_decision_forests.model.decision_tree import decision_tree_pb2
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function





def data_root_path() -> str:
  return ""


def test_data_path() -> str:
  return os.path.join(data_root_path(),
                      "external/ydf/yggdrasil_decision_forests/test_data")


def tmp_path() -> str:
  return flags.FLAGS.test_tmpdir


def test_model_directory() -> str:
  return os.path.join(test_data_path(), "model")


class BlogSequenceTest(parameterized.TestCase, tf.test.TestCase):

  def test_base(self):
    path = os.path.join(tmp_path(), "tmp.bs")


# Path: tensorflow_decision_forests/component/inspector/blob_sequence.py
# class Reader(object):
# class Writer(object):
#   def __init__(self, path: str):
#   def open(self, path: str):
#   def close(self):
#   def read(self) -> Optional[bytes]:
#   def __enter__(self):
#   def __exit__(self, exc_type, exc_val, exc_tb):
#   def __iter__(self) -> Iterator[bytes]:
#   def __enter__(self):
#   def __exit__(self, exc_type, exc_val, exc_tb):
#   def __init__(self, path: Optional[str] = None):
#   def open(self, path: str):
#   def write(self, blob: bytes):
#   def close(self):


# Path: tensorflow_decision_forests/component/inspector/blob_sequence_test.py
import os
import tensorflow as tf
from absl import flags
from absl import logging
from absl.testing import parameterized
from tensorflow_decision_forests.component.inspector import blob_sequence
from yggdrasil_decision_forests.model.decision_tree import decision_tree_pb2

from __future__ import absolute_import
from __future__ import division
from __future__ import print_function





def data_root_path() -> str:
  return ""


def test_data_path() -> str:
  return os.path.join(data_root_path(),
                      "external/ydf/yggdrasil_decision_forests/test_data")


def tmp_path() -> str:
  return flags.FLAGS.test_tmpdir


def test_model_directory() -> str:
  return os.path.join(test_data_path(), "model")


class BlogSequenceTest(parameterized.TestCase, tf.test.TestCase):

  def test_base(self):
    path = os.path.join(tmp_path(), "tmp.bs")


    writer = blob_sequence.Writer(path)