code: def random_text(nobs=100):
      # Construct a DataFrame where each row is a random slice from 'letters'
      idxs = np.random.default_rng(2).integers(
          len(ascii_letters), size=(nobs, 2)
      )
      idxs.sort(axis=1)
      strings = [ascii_letters[x[0] : x[1]] for x in idxs]
  
      return DataFrame(strings, columns=["letters"])
  
imports: from string import ascii_letters
  import numpy
  import pytest
  from pandas.errors import SettingWithCopyError, SettingWithCopyWarning
  import pandas
  from pandas import DataFrame, Index, Series, Timestamp, date_range, option_context
  import pandas._testing
label_desc: Use image node_id 1 for calling a global function with example usage: random_text(nobs) and returns: DataFrame