code: def test_exception(self):
      bad_url = "hdfs:///root/"
      if self.has_hdfs:
          self.assertRaises(
              IOError,
              lambda: glconnect.get_unity().__read__("hdfs:///"),
          )
          self.assertRaises(
              IOError,
              lambda: glconnect.get_unity().__read__("hdfs:///tmp"),
          )
          self.assertRaises(
              IOError,
              lambda: glconnect.get_unity().__read__(
                  "hdfs://" + self.tempfile
              ),
          )
          self.assertRaises(
              IOError,
              lambda: glconnect.get_unity().__write__(
                  bad_url + "/tmp", "somerandomcontent"
              ),
          )
          self.assertRaises(
              IOError, lambda: self.graph.save(bad_url + "x.graph")
          )
          self.assertRaises(
              IOError, lambda: self.sframe.save(bad_url + "x.frame_idx")
          )
          self.assertRaises(
              IOError, lambda: load_sgraph(bad_url + "mygraph")
          )
          self.assertRaises(
              IOError, lambda: load_sframe(bad_url + "x.frame_idx")
          )
          self.assertRaises(
              IOError, lambda: load_model(bad_url + "x.model")
          )
      else:
          logging.getLogger(__name__).info(
              "No hdfs available. Test pass."
          )
  
imports: from __future__ import print_function
  from __future__ import division
  from __future__ import absolute_import
  import sys
  import json
  import logging
  import os
  import fnmatch
  import tempfile
  import unittest
  import pandas
  from .._connect import main
  from ..None import _sys_util
  from ..None import util
  from ..None import SGraph, SFrame, load_sgraph, load_model, load_sframe
  from turicreate.toolkits._model import Model
  from pandas.util.testing import assert_frame_equal
label_desc: Use image node_id 6 for calling the HDFSConnectorTests obj's underlying member method code with example usage: obj.test_exception() without return types