code: def update_dimension(m, current_num_dimensions):
      return len(m.feature_names_)
  
file_path: turicreate/src/external/coremltools_wrap/coremltools/coremltools/converters/sklearn/_dict_vectorizer.py
imports: import six
  from .None import _sklearn_util
  from ...None import SPECIFICATION_VERSION
  from ...models._interface_management import set_transform_interface_params
  from ...proto import Model_pb2
  from ...proto import FeatureTypes_pb2
  from ...models._feature_management import process_or_validate_features
  from ...models.feature_vectorizer import create_feature_vectorizer
  from ...models import MLModel
  from ..._deps import _HAS_SKLEARN
  from ...models import datatypes
  from ...models.pipeline import Pipeline
label_desc: Use image node_id 2 for calling a global function with example usage: update_dimension(m, current_num_dimensions) and returns: len