def METHOD_NAME(socket: socket.socket, data_len) -> bytes:
    data = b''
    while len(data) < data_len:
        to_be_read = data_len - len(data)
        # LOG.debug(f"Reading data: {to_be_read} of: {data_len} - bytes")
        chunk: bytes = socket.recv(to_be_read)
        # LOG.debug(f"Got chunk of data: {len(chunk)}")
        data += chunk
    return data