code: def _convert_from_string(data):
      for char in "[]":
          data = data.replace(char, "")
  
      rows = data.split(";")
      newdata = []
      count = 0
      for row in rows:
          trow = row.split(",")
          newrow = []
          for col in trow:
              temp = col.split()
              newrow.extend(map(ast.literal_eval, temp))
          if count == 0:
              Ncols = len(newrow)
          elif len(newrow) != Ncols:
              raise ValueError("Rows not the same size.")
          count += 1
          newdata.append(newrow)
      return newdata
  
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 1 for calling a global function with example usage: _convert_from_string(data) and returns: newdata