code: def _expand_elements(body):
      lens = Series(lmap(len, body))
      lens_max = lens.max()
      not_max = lens[lens != lens_max]
  
      empty = [""]
      for ind, length in iteritems(not_max):
          body[ind] += empty * (lens_max - length)
  
imports: from distutils.version import LooseVersion
  import numbers
  import os
  import re
  import pandas.compat
  from pandas.compat import binary_type, iteritems, lmap, lrange, raise_with_traceback, string_types, u
  from pandas.errors import AbstractMethodError, EmptyDataError
  from pandas.core.dtypes.common import is_list_like
  from pandas import Series
  from pandas.io.common import _is_url, _validate_header_arg, urlopen
  from pandas.io.formats.printing import pprint_thing
  from pandas.io.parsers import TextParser
label_desc: Use image node_id 6 for calling a global function with example usage: _expand_elements(body) without return types