from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import tensorflow as tf
from tensorflow_datasets.image import binary_alpha_digits
import tensorflow_datasets.testing as tfds_test


class BinaryAlphaDigitsTest(tfds_test.DatasetBuilderTestCase):
    DATASET_CLASS = binary_alpha_digits.BinaryAlphaDigits
    SPLITS = {  
        "train": 2,
      }

    DL_EXTRACT_RESULT = {
        "train": "binaryalphadigs.mat",
      }
 

if __name__ == "__main__":
    tfds_test.test_main()

from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import tensorflow as tf
from tensorflow_datasets.image import binary_alpha_digits
import tensorflow_datasets.testing as tfds_test


class BinaryAlphaDigitsTest(tfds_test.DatasetBuilderTestCase):
    DATASET_CLASS = binary_alpha_digits.BinaryAlphaDigits
    SPLITS = {  
        "train": 2,
      }

    DL_EXTRACT_RESULT = {
        "train": tf.compat.as_text("binaryalphadigs.mat"),
      }
 

if __name__ == "__main__":
    tfds_test.test_main()

Fix in test file for Binary Alpha Digit Dataset Issue-189
Fix in test file for Binary Alpha Digit Dataset Issue-189

  from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import tensorflow as tf
  from tensorflow_datasets.image import binary_alpha_digits
  import tensorflow_datasets.testing as tfds_test
  
  
  class BinaryAlphaDigitsTest(tfds_test.DatasetBuilderTestCase):
      DATASET_CLASS = binary_alpha_digits.BinaryAlphaDigits
      SPLITS = {  
          "train": 2,
        }
  
      DL_EXTRACT_RESULT = {
-         "train": "binaryalphadigs.mat",
+         "train": tf.compat.as_text("binaryalphadigs.mat"),
        }
   
  
  if __name__ == "__main__":
      tfds_test.test_main()
  
Fix in test file for Binary Alpha Digit Dataset Issue-189
## Code Before:
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import tensorflow as tf
from tensorflow_datasets.image import binary_alpha_digits
import tensorflow_datasets.testing as tfds_test


class BinaryAlphaDigitsTest(tfds_test.DatasetBuilderTestCase):
    DATASET_CLASS = binary_alpha_digits.BinaryAlphaDigits
    SPLITS = {  
        "train": 2,
      }

    DL_EXTRACT_RESULT = {
        "train": "binaryalphadigs.mat",
      }
 

if __name__ == "__main__":
    tfds_test.test_main()

## Instruction:
Fix in test file for Binary Alpha Digit Dataset Issue-189
## Code After:
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import tensorflow as tf
from tensorflow_datasets.image import binary_alpha_digits
import tensorflow_datasets.testing as tfds_test


class BinaryAlphaDigitsTest(tfds_test.DatasetBuilderTestCase):
    DATASET_CLASS = binary_alpha_digits.BinaryAlphaDigits
    SPLITS = {  
        "train": 2,
      }

    DL_EXTRACT_RESULT = {
        "train": tf.compat.as_text("binaryalphadigs.mat"),
      }
 

if __name__ == "__main__":
    tfds_test.test_main()
