# Path: sunds/tasks/boundaries_utils.py
# class MultiSceneBoundaries:
#   def __init__(self, scene_boundaries: List[ArrayDict]):
#   def get_corners(self, scene_name: TensorLike) -> Tuple[tf.Tensor, tf.Tensor]:


import numpy as np
import sunds
import tensorflow_datasets as tfds
from sunds.tasks import boundaries_utils
# Copyright 2022 The sunds Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

"""Test of the scene boundaries."""



def test_scene_boundaries(lego_builder: sunds.core.DatasetBuilder):
  ds = lego_builder.scene_builder.as_dataset(split='train')
  scene_boundaries_values = list(tfds.as_numpy(ds))

# Path: sunds/tasks/boundaries_utils.py
# class MultiSceneBoundaries:
#   def __init__(self, scene_boundaries: List[ArrayDict]):
#   def get_corners(self, scene_name: TensorLike) -> Tuple[tf.Tensor, tf.Tensor]:


# Path: sunds/tasks/boundaries_utils_test.py
import numpy as np
import sunds
import tensorflow_datasets as tfds
from sunds.tasks import boundaries_utils

# Copyright 2022 The sunds Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

"""Test of the scene boundaries."""



def test_scene_boundaries(lego_builder: sunds.core.DatasetBuilder):
  ds = lego_builder.scene_builder.as_dataset(split='train')
  scene_boundaries_values = list(tfds.as_numpy(ds))

  scene_boundaries = boundaries_utils.MultiSceneBoundaries(