Auto Generated Code

def netconf_state_datastores_datastore_locks_lock_type_partial_lock_partial_lock_locked_by_session(self, **kwargs):
        """Auto Generated Code
        """
        config = ET.Element("config")
        netconf_state = ET.SubElement(config, "netconf-state", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring")
        datastores = ET.SubElement(netconf_state, "datastores")
        datastore = ET.SubElement(datastores, "datastore")
        name_key = ET.SubElement(datastore, "name")
        name_key.text = kwargs.pop('name')
        locks = ET.SubElement(datastore, "locks")
        lock_type = ET.SubElement(locks, "lock-type")
        partial_lock = ET.SubElement(lock_type, "partial-lock")
        partial_lock = ET.SubElement(partial_lock, "partial-lock")
        lock_id_key = ET.SubElement(partial_lock, "lock-id")
        lock_id_key.text = kwargs.pop('lock_id')
        locked_by_session = ET.SubElement(partial_lock, "locked-by-session")
        locked_by_session.text = kwargs.pop('locked_by_session')

        callback = kwargs.pop('callback', self._callback)
        return callback(config)