In China, robots are being developed to deliver groceries, provide companionship to the elderly, dispense legal advice and now, join the ranks of educators.