code: def test_get_categorical_numeric_feature_types(self):
      schema = text_format.Parse(
          """
          feature {
            name: "fa"
            type: INT
            int_domain {
              is_categorical: true
            }
          }
          feature {
            name: "fb"
            type: BYTES
          }
          feature {
            name: "fc"
            type: INT
            bool_domain {
              name: "fc_bool_domain"
            }
          }
          feature {
            name: "fd"
            type: STRUCT
            struct_domain {
              feature {
                name: "fd_fa"
                type: INT
                int_domain {
                  is_categorical: true
                }
              }
              feature {
                name: "fd_fb"
              }
            }
          }
          feature {
            name: "fe"
            type: FLOAT
          }
          feature {
            name: "fg"
            type: FLOAT
            float_domain {
               is_categorical: true
            }
          }
          """,
          schema_pb2.Schema(),
      )
      self.assertEqual(
          schema_util.get_categorical_numeric_feature_types(schema),
          {
              types.FeaturePath(["fa"]): schema_pb2.INT,
              types.FeaturePath(["fc"]): schema_pb2.INT,
              types.FeaturePath(["fd", "fd_fa"]): schema_pb2.INT,
              types.FeaturePath(["fg"]): schema_pb2.FLOAT,
          },
      )
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import os
  from absl import flags
  from absl.testing import absltest
  from absl.testing import parameterized
  from tensorflow_data_validation import types
  from tensorflow_data_validation.utils import schema_util
  from google.protobuf import text_format
  from tensorflow_metadata.proto.v0 import schema_pb2
label_desc: Use image node_id 19 for calling the SchemaUtilTest obj's underlying member method code with example usage: obj.test_get_categorical_numeric_feature_types() without return types