code: def _unify_rows(a):
      """Unify lengths of each row of a."""
      lens = np.fromiter(map(len, a), np.int32)
      if not (lens[0] == lens).all():
          out = np.zeros((len(a), lens.max()), np.float32)
          for i, row in enumerate(a):
              out[i, : lens[i]] = row
      else:
          out = np.float32(a)
      return out
  
file_path: lucid/lucid/misc/gl/meshutil.py
imports: from builtins import str
  from collections import OrderedDict
  import numpy
label_desc: Use image node_id 9 for calling a global function with example usage: _unify_rows(a) and returns: out