code: def test_etalon_validation(etalon: Dataset):
      print("Initial dataset:\n", etalon)
      Dataset.MIN_ROWS_COUNT = 1  # type: ignore
      count = len(etalon)
      etalon.validate()
      valid_count = len(etalon)
      valid_rate = 100 * valid_count / count
  
      assert valid_count == 4
      valid_rate_expected = 100 * (valid_count / 10)
      assert valid_rate == pytest.approx(valid_rate_expected, abs=0.01)
  
imports: import ipaddress
  import random
  from datetime import date, datetime
  import numpy
  import pandas
  import pytest
  from pandas.testing import assert_frame_equal
  from upgini import Dataset, FileColumnMeaningType
  from upgini.errors import ValidationError
  from upgini.metadata import ModelTaskType, SearchKey
  from upgini.resource_bundle import bundle
  from upgini.utils.datetime_utils import DateTimeSearchKeyConverter
  from upgini.utils.email_utils import EmailSearchKeyConverter
  from upgini.utils.features_validator import FeaturesValidator
  from upgini.utils.warning_counter import WarningCounter
label_desc: Use image node_id 1 for calling a global function with example usage: test_etalon_validation(etalon) without return types