code: def test_embedding_sizes():
      self = Mock()
  
      self.cat_dims = [4]
      # use __get__ to test property with mocked self
      es = TabularClassificationData.embedding_sizes.__get__(
          self
      )  # pylint: disable=E1101
      assert es == [(4, 16)]
  
      self.cat_dims = []
      # use __get__ to test property with mocked self
      es = TabularClassificationData.embedding_sizes.__get__(
          self
      )  # pylint: disable=E1101
      assert es == []
  
      self.cat_dims = [100_000, 1_000_000]
      # use __get__ to test property with mocked self
      es = TabularClassificationData.embedding_sizes.__get__(
          self
      )  # pylint: disable=E1101
      assert es == [(100_000, 17), (1_000_000, 31)]
  
file_path: lightning-flash/tests/tabular/classification/test_data.py
imports: from pathlib import Path
  from unittest.mock import Mock
  import numpy
  import pytest
  from flash.core.data.io.input import DataKeys
  from flash.core.utilities.imports import _TOPIC_TABULAR_AVAILABLE
label_desc: Use image node_id 4 for calling a global function with example usage: test_embedding_sizes() without return types