original_docstring: Helper function to expand data into the Wikibase API structure.
  
          :param data: Data to normalize
          :return: The dict with normalized data
          
docstring: Helper function to expand data into the Wikibase API structure.
docstring_tokens: Helper function to expand data into the Wikibase API structure .
code: def normalizeData(cls, data: dict) -> dict:
          """Helper function to expand data into the Wikibase API structure.
  
          :param data: Data to normalize
          :return: The dict with normalized data
          """
          norm_data = {}
          for key, values in data.items():
              if isinstance(values, list):
                  strings = []
                  for value in values:
                      if isinstance(value, str):
                          strings.append({'language': key, 'value': value})
                      else:
                          strings.append(value)
                  norm_data[key] = strings
          return norm_data
code_tokens: def normalizeData ( cls , data : dict ) -> dict : norm_data = { } for key , values in data . items ( ) : if isinstance ( values , list ) : strings = [ ] for value in values : if isinstance ( value , str ) : strings . append ( { 'language' : key , 'value' : value } ) else : strings . append ( value ) norm_data [ key ] = strings return norm_data
short_docstring: Helper function to expand data into the Wikibase API structure.
short_docstring_tokens: Helper function to expand data into the Wikibase API structure .
comment: """Helper function to expand data into the Wikibase API structure.
  
          :param data: Data to normalize
          :return: The dict with normalized data
          """