docs: def _inject_function_into_js(context, name, func):
      """
      Inject a Python function into the global scope of a dukpy JavaScript interpreter context.
  
      :type context: dukpy.JSInterpreter
      :param name: Name to give the function in JavaScript.
      :param func: Python function.
      """
      context.export_function(name, func)
      context.evaljs(""";
          {name} = function() {{
              var args = Array.prototype.slice.call(arguments);
              args.unshift('{name}');
              return call_python.apply(null, args);
          }};
      """.format(name=name))