code: def _nyoka_mining_schema(
      self, mining_schema: models.MiningSchema
  ) -> nyoka_pmml.MiningSchema:
      return nyoka_pmml.MiningSchema(
          MiningField=[
              nyoka_pmml.MiningField(
                  name=f.name, usageType=f.usageType.name
              )
              for f in mining_schema.miningFields
          ]
      )
  
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 7 for calling the NyokaSerializer obj's underlying member method code with example usage: obj._nyoka_mining_schema(mining_schema) and returns: nyoka_pmml