code: def test_date_range(self):
      self.assert_eq(
          ps.date_range(start="1/1/2018", end="1/08/2018"),
          pd.date_range(start="1/1/2018", end="1/08/2018"),
      )
      self.assert_eq(
          ps.date_range(start="1/1/2018", periods=8),
          pd.date_range(start="1/1/2018", periods=8),
      )
      self.assert_eq(
          ps.date_range(end="1/1/2018", periods=8),
          pd.date_range(end="1/1/2018", periods=8),
      )
      self.assert_eq(
          ps.date_range(
              start="2018-04-24", end="2018-04-27", periods=3
          ),
          pd.date_range(
              start="2018-04-24", end="2018-04-27", periods=3
          ),
      )
  
      self.assert_eq(
          ps.date_range(start="1/1/2018", periods=5, freq="M"),
          pd.date_range(start="1/1/2018", periods=5, freq="M"),
      )
  
      self.assert_eq(
          ps.date_range(start="1/1/2018", periods=5, freq="3M"),
          pd.date_range(start="1/1/2018", periods=5, freq="3M"),
      )
  
      self.assert_eq(
          ps.date_range(
              start="1/1/2018", periods=5, freq=pd.offsets.MonthEnd(3)
          ),
          pd.date_range(
              start="1/1/2018", periods=5, freq=pd.offsets.MonthEnd(3)
          ),
      )
  
      self.assert_eq(
          ps.date_range(
              start="2017-01-01", end="2017-01-04", inclusive="left"
          ),
          pd.date_range(
              start="2017-01-01", end="2017-01-04", inclusive="left"
          ),
      )
  
      self.assert_eq(
          ps.date_range(
              start="2017-01-01", end="2017-01-04", inclusive="right"
          ),
          pd.date_range(
              start="2017-01-01", end="2017-01-04", inclusive="right"
          ),
      )
  
      self.assert_eq(
          ps.date_range(
              start="2017-01-01", end="2017-01-04", inclusive="both"
          ),
          pd.date_range(
              start="2017-01-01", end="2017-01-04", inclusive="both"
          ),
      )
  
      self.assert_eq(
          ps.date_range(
              start="2017-01-01", end="2017-01-04", inclusive="neither"
          ),
          pd.date_range(
              start="2017-01-01", end="2017-01-04", inclusive="neither"
          ),
      )
  
      with self.assertRaisesRegex(
          ValueError,
          "Inclusive has to be either 'both', 'neither', 'left' or 'right'",
      ):
          ps.date_range(
              start="2017-01-01", end="2017-01-04", inclusive="test"
          )
  
      self.assertRaises(
          AssertionError,
          lambda: ps.date_range(
              start="1/1/2018", periods=5, tz="Asia/Tokyo"
          ),
      )
      self.assertRaises(
          AssertionError,
          lambda: ps.date_range(start="1/1/2018", periods=5, freq="ns"),
      )
      self.assertRaises(
          AssertionError,
          lambda: ps.date_range(start="1/1/2018", periods=5, freq="N"),
      )
  
imports: import itertools
  import inspect
  import pandas
  import numpy
  from pyspark import pandas
  from pyspark.pandas.exceptions import PandasNotImplementedError
  from pyspark.pandas.namespace import _get_index_map, read_delta
  from pyspark.pandas.utils import spark_column_equals
  from pyspark.pandas.missing.general_functions import MissingPandasLikeGeneralFunctions
  from pyspark.testing.pandasutils import PandasOnSparkTestCase
  from pyspark.testing.sqlutils import SQLTestUtils
label_desc: Use image node_id 3 for calling the NamespaceTestsMixin obj's underlying member method code with example usage: obj.test_date_range() without return types