code: def _dict_from_grouped_names(df: pd.DataFrame) -> dict:
      """
      Create dictionary from multiple same names.
      Applicable when collating the values for `.value`,
      or when names_pattern is a list/tuple.
      """
      outcome = defaultdict(list)
      for num, name in enumerate(df.columns):
          arr = df.iloc[:, num]._values
          outcome[name].append(arr)
      return {name: concat_compat(arr) for name, arr in outcome.items()}
  
imports: import re
  import warnings
  from collections import defaultdict
  from itertools import chain, zip_longest
  from typing import Callable, Optional, Pattern, Union
  import numpy
  import pandas
  import pandas_flavor
  from pandas.api.types import is_categorical_dtype, is_extension_array_dtype, is_list_like
  from pandas.core.dtypes.concat import concat_compat
  from janitor.functions.utils import _computations_expand_grid, get_index_labels
  from janitor.utils import check, refactored_function
label_desc: Use image node_id 10 for calling a global function with example usage: _dict_from_grouped_names(df) and returns: unknown