<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def add_new_key(self, code, name):

 """Add a new user key code."""

        device_json = {"code": code, "name": name}
        return self.api_interface.create_lock_key(self, device_json)