code: def _from_string(str, gdict, ldict):
      rows = str.split(";")
      rowtup = []
      for row in rows:
          trow = row.split(",")
          newrow = []
          for x in trow:
              newrow.extend(x.split())
          trow = newrow
          coltup = []
          for col in trow:
              col = col.strip()
              try:
                  thismat = ldict[col]
              except KeyError:
                  try:
                      thismat = gdict[col]
                  except KeyError:
                      raise KeyError("%s not found" % (col,))
  
              coltup.append(thismat)
          rowtup.append(concatenate(coltup, axis=-1))
      return concatenate(rowtup, axis=0)
  
imports: from __future__ import division, absolute_import, print_function
  import sys
  import warnings
  import ast
  import numpy.core.numeric
  from numpy.core.numeric import concatenate, isscalar
  from numpy.core.overrides import set_module
  from numpy.linalg import matrix_power
label_desc: Use image node_id 3 for calling a global function with example usage: _from_string(str, gdict, ldict) and returns: concatenate