def _visit_call_helper(self, node):
		if node.args:
			args = [self.visit(e) for e in node.args]
			args = ', '.join([e for e in args if e])
		else:
			args = ''

		if isinstance(node.func, ast.Name) and node.func.id == 'range' and len(node.args)==2:
			func = '__range2'
		else:
			func = self.visit(node.func)

		if node.keywords:
			kwargs = ','.join( ['%s:%s'%(x.arg, self.visit(x.value)) for x in node.keywords] )
			if args:
				return '%s(%s, %s)' %( func, ','.join(args), kwargs )
			else:
				return '%s( %s )' %( func, kwargs )

		else:
			return '%s(%s)' % (func, args)
dataset/ETHPy150Open PythonJS/PythonJS/pythonjs/pythonjs_to_dart.py/DartGenerator._visit_call_helper/original