code: def create_lock_key(self, device, new_device_json, id_override=None, type_override=None):
          
          object_id = id_override or device.object_id()
          object_type = type_override or device.object_type()
          url_string = "{}/{}s/{}/keys".format(self.BASE_URL,
                                               object_type,
                                               object_id)
          try:
              arequest = requests.post(url_string,
                                       data=json.dumps(new_device_json),
                                       headers=API_HEADERS)
              response_json = arequest.json()
              return response_json
          except requests.exceptions.RequestException:
              return None
docs: Create a new lock key code.
  
          Args:
              device (WinkDevice): The device the change is being requested for.
              new_device_json (String): The JSON string required to create the device.
              id_override (String, optional): A device ID used to override the
                  passed in device's ID. Used to make changes on sub-devices.
                  i.e. Outlet in a Powerstrip. The Parent device's ID.
              type_override (String, optional): Used to override the device type
                  when a device inherits from a device other than WinkDevice.
          Returns:
              response_json (Dict): The API's response in dictionary format