code: def _nyoka_data_dictionary(
      self, data_dictionary: models.DataDictionary
  ) -> nyoka_pmml.DataDictionary:
      return nyoka_pmml.DataDictionary(
          numberOfFields=0
          if not data_dictionary.dataFields
          else len(data_dictionary.dataFields),
          DataField=None
          if not data_dictionary.dataFields
          else [
              self._nyoka_data_field(f)
              for f in data_dictionary.dataFields
          ],
      )
  
imports: import typing
  import datetime
  import io
  import nyoka.PMML44
  import nyoka.base.constants
  from .abstract_serializer import AbstractSerializer
  from ..None import __version__
  from ..None import models
label_desc: Use image node_id 4 for calling the NyokaSerializer obj's underlying member method code with example usage: obj._nyoka_data_dictionary(data_dictionary) and returns: nyoka_pmml