code: def test_ip_func_valid_ip():
      """Test to see if the cidr_func behaves as expected when a valid IP is passed in"""
      cidr_request: AdvancedDataTypeRequest = {
          "advanced_data_type": "cidr",
          "values": ["1.1.1.1"],
      }
      cidr_response: AdvancedDataTypeResponse = {
          "values": [16843009],
          "error_message": "",
          "display_value": "16843009",
          "valid_filter_operators": [
              FilterStringOperators.EQUALS,
              FilterStringOperators.GREATER_THAN_OR_EQUAL,
              FilterStringOperators.GREATER_THAN,
              FilterStringOperators.IN,
              FilterStringOperators.LESS_THAN,
              FilterStringOperators.LESS_THAN_OR_EQUAL,
          ],
      }
  
      assert (
          internet_address.translate_type(cidr_request) == cidr_response
      )
  
imports: import sqlalchemy
  from sqlalchemy import Column, Integer
  from superset.advanced_data_type.types import AdvancedDataTypeRequest, AdvancedDataTypeResponse
  from superset.utils.core import FilterOperator, FilterStringOperators
  from superset.advanced_data_type.plugins.internet_address import internet_address
  from superset.advanced_data_type.plugins.internet_port import internet_port
label_desc: Use image node_id 1 for calling a global function with example usage: test_ip_func_valid_ip() without return types