code: def test_unbounded_frames(self):
      from pyspark.sql import functions as F
      from pyspark.sql import window
  
      df = self.spark.range(0, 3)
  
      def rows_frame_match():
          return (
              "ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING"
              in df.select(
                  F.count("*").over(
                      window.Window.rowsBetween(
                          -sys.maxsize, sys.maxsize
                      )
                  )
              ).columns[0]
          )
  
      def range_frame_match():
          return (
              "RANGE BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING"
              in df.select(
                  F.count("*").over(
                      window.Window.rangeBetween(
                          -sys.maxsize, sys.maxsize
                      )
                  )
              ).columns[0]
          )
  
      for new_maxsize in [2**31 - 1, 2**63 - 1, 2**127 - 1]:
          old_maxsize = sys.maxsize
          sys.maxsize = new_maxsize
          try:
              # Manually reload window module to use monkey-patched sys.maxsize.
              reload(window)
              self.assertTrue(rows_frame_match())
              self.assertTrue(range_frame_match())
          finally:
              sys.maxsize = old_maxsize
  
      reload(window)
  
imports: import os
  import shutil
  import sys
  import tempfile
  import unittest
  from importlib import reload
  import py4j
  from pyspark import SparkContext, SQLContext
  from pyspark.sql import Row, SparkSession
  from pyspark.sql.types import StructType, StringType, StructField
  from pyspark.testing.utils import ReusedPySparkTestCase
label_desc: Use image node_id 6 for calling the HiveContextSQLTests obj's underlying member method code with example usage: obj.test_unbounded_frames() and returns: unknown, unknown