import socket


def convert_ip_as_bytes_to_str_with_dots(ip_as_bytes):
    """
    Converts an IP address in string form with dots to bytes
    e.g. b'\xc0\xa8\x00\x01' -> '192.168.0.1'
    """
    return socket.inet_ntoa(ip_as_bytes)