class_docstr: Test the create method for DBSCAN clustering.
class_docstr_tok: ["Test","the","create","method","for","DBSCAN","clustering","."]
docstr: Check that bad inputs are handled appropriately.
docstr_tok: ["Check","that","bad","inputs","are","handled","appropriately","."]
code: def test_bogus_inputs(self):
      """
      Check that bad inputs are handled appropriately.
      """
  
      ## Empty data
      with self.assertRaises(ToolkitError):
          tc.dbscan.create(
              dataset=tc.SFrame(),
              radius=1.0,
              min_core_neighbors=5,
              verbose=False,
          )
  
      ## Non-SFrame data
      with self.assertRaises(ToolkitError):
          tc.dbscan.create(
              dataset=self.sf.to_dataframe(),
              radius=1.0,
              min_core_neighbors=5,
              verbose=False,
          )
  
      ## Neighborhood parameters
      for val in [-1, "fossa", [1.0, 2.0, 3.0]]:
          with self.assertRaises(ValueError):
              tc.dbscan.create(
                  self.sf,
                  distance="euclidean",
                  radius=val,
                  min_core_neighbors=self.min_core_neighbors,
                  verbose=False,
              )
  
          with self.assertRaises(ValueError):
              tc.dbscan.create(
                  self.sf,
                  distance="euclidean",
                  radius=self.radius,
                  min_core_neighbors=val,
                  verbose=False,
              )
  
      ## Bad distance names
      with self.assertRaises(TypeError):
          tc.dbscan.create(self.sf, distance=3)
  
      with self.assertRaises(ValueError):
          tc.dbscan.create(self.sf, distance="fossa")
  
imports: from __future__ import print_function
  from __future__ import division
  from __future__ import absolute_import
  import copy
  import numpy
  import unittest
  import turicreate
  from .None import util
  from turicreate.util import _assert_sframe_equal
  from turicreate.toolkits._main import ToolkitError
  from .test_knn_classifier import make_classifier_data
  import sys
  import os
label_desc: Use image node_id 3 for calling the CreateTest obj's underlying member method code with example usage: obj.test_bogus_inputs() without return types