code: def test_category_int_dtype(tmpdir):
      feature = category_feature()
      input_features = [feature]
      output_features = [binary_feature()]
  
      csv_fname = generate_data(
          input_features,
          output_features,
          os.path.join(tmpdir, "dataset.csv"),
      )
      df = pd.read_csv(csv_fname)
  
      distinct_values = df[feature[NAME]].drop_duplicates().values
      value_map = {v: idx for idx, v in enumerate(distinct_values)}
      df[feature[NAME]] = df[feature[NAME]].map(lambda x: value_map[x])
  
      run_experiment(input_features, output_features, dataset=df)
  
file_path: ludwig/tests/integration_tests/test_simple_features.py
imports: import logging
  import os
  import pandas
  import pytest
  from ludwig.constants import NAME
  from tests.integration_tests.utils import bag_feature, binary_feature, category_feature, generate_data, number_feature, run_experiment, sequence_feature, set_feature, text_feature, vector_feature
label_desc: Use image node_id 3 for calling a global function with example usage: test_category_int_dtype(tmpdir) without return types