<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _update_services_target_state(sdp_target_state: str):
 """Update the target states of services based on SDP target state. When we get a new target state this function is called to ensure components receive the target state(s) and/or act on them. Args: sdp_target_state (str):
 Target state of SDP """

    service_states = get_service_state_list()

    # Set the target state of services
    for service in service_states:
        if service.current_state != sdp_target_state:
            LOG.debug('Setting the target state of %s to be %s', service.id,
                      sdp_target_state)
            service.update_target_state(sdp_target_state)