code: def load_macroeconomic():
      """Load the US Macroeconomic Data [1]_.
  
      Returns
      -------
      y : pd.DataFrame
       Time series
  
      Examples
      --------
      >>> from sktime.datasets import load_macroeconomic
      >>> y = load_macroeconomic()  # doctest: +SKIP
  
      Notes
      -----
      US Macroeconomic Data for 1959Q1 - 2009Q3.
  
      Dimensionality:     multivariate, 14
      Series length:      203
      Frequency:          Quarterly
      Number of cases:    1
  
      This data is kindly wrapped via `statsmodels.datasets.macrodata`.
  
      References
      ----------
      .. [1] Wrapped via statsmodels:
            https://www.statsmodels.org/dev/datasets/generated/macrodata.html
      .. [2] Data Source: FRED, Federal Reserve Economic Data, Federal Reserve
            Bank of St. Louis; http://research.stlouisfed.org/fred2/;
            accessed December 15, 2009.
      .. [3] Data Source: Bureau of Labor Statistics, U.S. Department of Labor;
            http://www.bls.gov/data/; accessed December 15, 2009.
      """
      _check_soft_dependencies("statsmodels")
      import statsmodels.api as sm
  
      y = sm.datasets.macrodata.load_pandas().data
      y["year"] = y["year"].astype(int).astype(str)
      y["quarter"] = (
          y["quarter"].astype(int).astype(str).apply(lambda x: "Q" + x)
      )
      y["time"] = y["year"] + "-" + y["quarter"]
      y.index = pd.PeriodIndex(data=y["time"], freq="Q", name="Period")
      y = y.drop(columns=["year", "quarter", "time"])
      y.name = "US Macroeconomic Data"
      return y
  
imports: import os
  import zipfile
  from urllib.error import HTTPError, URLError
  from warnings import warn
  import numpy
  import pandas
  from sktime.datasets._data_io import _download_and_extract, _list_available_datasets, _load_dataset, _load_provided_dataset
  from sktime.datasets._readers_writers.tsf import load_tsf_to_dataframe
  from sktime.datasets.tsf_dataset_names import tsf_all, tsf_all_datasets
  from sktime.utils.validation._dependencies import _check_soft_dependencies
label_desc: Use image node_id 20 for calling a global function with example usage: load_macroeconomic() and returns: y