code: def _make_dictnames(tmp_arr, offset=0):
      """
      Helper function to create a dictionary mapping a column number
      to the name in tmp_arr.
      """
      col_map = {}
      for i, col_name in enumerate(tmp_arr):
          col_map[i + offset] = col_name
      return col_map
  
imports: import numpy
  import pandas
  import scipy.linalg
  from statsmodels.tools.data import _is_using_pandas
  from statsmodels.tools.validation import array_like
label_desc: Use image node_id 2 for calling a global function with example usage: _make_dictnames(tmp_arr, offset) and returns: col_map