<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _get_ptr_details(self, device, device_type):
 """ Takes a device and device type and returns the corresponding HREF link and service name for use with PTR record management. """

        context = self.api.identity
        region = self.api.region_name
        if device_type.lower().startswith("load"):
            ep = pyrax._get_service_endpoint(context, "load_balancer", region)
            svc = "loadbalancers"
            svc_name = "cloudLoadBalancers"
        else:
            ep = pyrax._get_service_endpoint(context, "compute", region)
            svc = "servers"
            svc_name = "cloudServersOpenStack"
        href = "%s/%s/%s" % (ep, svc, utils.get_id(device))
        return (href, svc_name)