def is_dvr_serviced(device_owner):
 return (device_owner.startswith(n_const.DEVICE_OWNER_COMPUTE_PREFIX) or (device_owner in get_other_dvr_serviced_device_owners()))

def is_dvr_serviced ( device_owner ) : return ( device_owner . startswith ( n_const . DEVICE_OWNER_COMPUTE_PREFIX ) or ( device_owner in get_other_dvr_serviced_device_owners ( ) ) )
check if the port need to be serviced by dvr helper function to check the device owners of the ports in the compute and service node to make sure if they are required for dvr or any service directly or indirectly associated with dvr .