code: def _create_sp_series():
      nan = np.nan
  
      # nan-based
      arr = np.arange(15, dtype=np.float64)
      arr[7:12] = nan
      arr[-1:] = nan
  
      bseries = Series(SparseArray(arr, kind="block"))
      bseries.name = "bseries"
      return bseries
  
file_path: pandas/pandas/tests/io/generate_legacy_storage_files.py
imports: from datetime import timedelta
  import os
  import pickle
  import platform
  import sys
  import numpy
  import pandas
  from pandas import Categorical, DataFrame, Index, MultiIndex, NaT, Period, RangeIndex, Series, Timestamp, bdate_range, date_range, interval_range, period_range, timedelta_range
  from pandas.arrays import SparseArray
  from pandas.tseries.offsets import FY5253, BusinessDay, BusinessHour, CustomBusinessDay, DateOffset, Day, Easter, Hour, LastWeekOfMonth, Minute, MonthBegin, MonthEnd, QuarterBegin, QuarterEnd, SemiMonthBegin, SemiMonthEnd, Week, WeekOfMonth, YearBegin, YearEnd
label_desc: Use image node_id 1 for calling a global function with example usage: _create_sp_series() and returns: bseries