<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def create_detector(self, detector):
 """Creates a new detector. Args: detector (object):
 the detector model object. Will be serialized as JSON. Returns: dictionary of the response (created detector model). """

        resp = self._post(self._u(self._DETECTOR_ENDPOINT_SUFFIX),
                          data=detector)
        resp.raise_for_status()
        return resp.json()