<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _check_ip(ip: str) -> bool: """ Check IP in range :param ip: :return: """

    address = ipaddress.IPv4Address(ip)
    return address in allowed_ips