code: def test_date_range_execution(setup):
      chunk_sizes = [None, 3]
      inclusives = ["both", "neither", "left", "right"]
  
      if _date_range_use_inclusive:
          with pytest.warns(FutureWarning, match="closed"):
              md.date_range("2020-1-1", periods=10, closed="right")
  
      for chunk_size, inclusive in itertools.product(
          chunk_sizes, inclusives
      ):
          kw = dict()
          if _date_range_use_inclusive:
              kw["inclusive"] = inclusive
          else:
              if inclusive == "neither":
                  continue
              elif inclusive == "both":
                  inclusive = None
              kw["closed"] = inclusive
  
          # start, periods, freq
          dr = md.date_range(
              "2020-1-1", periods=10, chunk_size=chunk_size, **kw
          )
  
          result = dr.execute().fetch()
          expected = pd.date_range("2020-1-1", periods=10, **kw)
          pd.testing.assert_index_equal(result, expected)
  
          # end, periods, freq
          dr = md.date_range(
              end="2020-1-10", periods=10, chunk_size=chunk_size, **kw
          )
  
          result = dr.execute().fetch()
          expected = pd.date_range(end="2020-1-10", periods=10, **kw)
          pd.testing.assert_index_equal(result, expected)
  
          # start, end, freq
          dr = md.date_range(
              "2020-1-1", "2020-1-10", chunk_size=chunk_size, **kw
          )
  
          result = dr.execute().fetch()
          expected = pd.date_range("2020-1-1", "2020-1-10", **kw)
          pd.testing.assert_index_equal(result, expected)
  
          # start, end and periods
          dr = md.date_range(
              "2020-1-1",
              "2020-1-10",
              periods=19,
              chunk_size=chunk_size,
              **kw,
          )
  
          result = dr.execute().fetch()
          expected = pd.date_range(
              "2020-1-1", "2020-1-10", periods=19, **kw
          )
          pd.testing.assert_index_equal(result, expected)
  
          # start, end and freq
          dr = md.date_range(
              "2020-1-1",
              "2020-1-10",
              freq="12H",
              chunk_size=chunk_size,
              **kw,
          )
  
          result = dr.execute().fetch()
          expected = pd.date_range(
              "2020-1-1", "2020-1-10", freq="12H", **kw
          )
          pd.testing.assert_index_equal(result, expected)
  
      # test timezone
      dr = md.date_range(
          "2020-1-1", periods=10, tz="Asia/Shanghai", chunk_size=7
      )
  
      result = dr.execute().fetch()
      expected = pd.date_range(
          "2020-1-1", periods=10, tz="Asia/Shanghai"
      )
      pd.testing.assert_index_equal(result, expected)
  
      # test periods=0
      dr = md.date_range("2020-1-1", periods=0)
  
      result = dr.execute().fetch()
      expected = pd.date_range("2020-1-1", periods=0)
      pd.testing.assert_index_equal(result, expected)
  
      # test start == end
      dr = md.date_range("2020-1-1", "2020-1-1", periods=1)
  
      result = dr.execute().fetch()
      expected = pd.date_range("2020-1-1", "2020-1-1", periods=1)
      pd.testing.assert_index_equal(result, expected)
  
      # test normalize=True
      dr = md.date_range(
          "2020-1-1", periods=10, normalize=True, chunk_size=4
      )
  
      result = dr.execute().fetch()
      expected = pd.date_range("2020-1-1", periods=10, normalize=True)
      pd.testing.assert_index_equal(result, expected)
  
      # test freq
      dr = md.date_range(
          start="1/1/2018", periods=5, freq="M", chunk_size=3
      )
  
      result = dr.execute().fetch()
      expected = pd.date_range(start="1/1/2018", periods=5, freq="M")
      pd.testing.assert_index_equal(result, expected)
  
      dr = md.date_range(start="2018/01/01", end="2018/07/01", freq="M")
      result = dr.execute().fetch()
      expected = pd.date_range(
          start="2018/01/01", end="2018/07/01", freq="M"
      )
      pd.testing.assert_index_equal(result, expected)
  
imports: import itertools
  import os
  import tempfile
  import time
  from collections import OrderedDict
  from datetime import datetime
  from string import printable
  import numpy
  import pandas
  import pytest
  from ....None import tensor
  from ....None import dataframe
  from ....config import option_context
  from ....tests.core import require_cudf, require_ray
  from ....utils import arrow_array_to_objects, lazy_import, pd_release_version
  from ...utils import ray_deprecate_ml_dataset
  from ..dataframe import from_pandas
  from ..series import from_pandas
  from ..index import from_pandas, from_tileable
  from ..from_tensor import dataframe_from_tensor, dataframe_from_1d_tileables
  from ..from_records import from_records
label_desc: Use image node_id 17 for calling a global function with example usage: test_date_range_execution(setup) without return types