code: def test_cut_with_nullable_int64():
      # GH 30787
      series = Series([0, 1, 2, 3, 4, pd.NA, 6, 7], dtype="Int64")
      bins = [0, 2, 4, 6, 8]
      intervals = IntervalIndex.from_breaks(bins)
  
      expected = Series(
          Categorical.from_codes(
              [-1, 0, 0, 1, 1, -1, 2, 3], intervals, ordered=True
          )
      )
  
      result = cut(series, bins=bins)
  
      tm.assert_series_equal(result, expected)
  
imports: import numpy
  import pytest
  import pandas
  from pandas import Categorical, DataFrame, DatetimeIndex, Index, Interval, IntervalIndex, Series, TimedeltaIndex, Timestamp, cut, date_range, interval_range, isna, qcut, timedelta_range, to_datetime
  import pandas._testing
  from pandas.api.types import CategoricalDtype
  import pandas.core.reshape.tile
label_desc: Use image node_id 50 for calling a global function with example usage: test_cut_with_nullable_int64() without return types