code: def babel_transform(es_string):
      
  
      path_to_babel = os.path.join(os.path.dirname(__file__), '..', 'tests',
                                   'fixtures', 'babel.js')
  
      es6 = '[1,2,3].map(n => n + 1);'
  
      babel_source = open(path_to_babel, "r").read()
  
      # Initializes PyMiniRacer
      ctx = py_mini_racer.MiniRacer()
  
      # Parse babel
      ctx.eval("""var self = this; %s """ % babel_source)
  
      # Transform stuff :)
      val = "babel.transform(`%s`)['code']" % es_string
      res = ctx.eval(val)
      return res
docs: Transform the provided string using babel.transform