code: def _update_services_target_state(sdp_target_state: str):
      
      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)
docs: 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