code: def _clean_param_dtypes(param):
      """
      Ensure data types are correct in the parameter dictionary.
  
      Args:
          param (dict): dictionary of parameter settings.
      """
  
      # Set the data type
      for k, v in param.items():
          v = str(v)
          # If the value is a list delimited with a comma, choose one element at random.
          # NOTE: review this behaviour.
          if "," in v:
              v = random.choice(v.split(","))
              param[k] = v
  
          # Ensure that each parameter is cast to the correct type
          if k in [
              "character_embedding_dimension",
              "character_lstm_hidden_state_dimension",
              "token_embedding_dimension",
              "token_lstm_hidden_state_dimension",
              "patience",
              "maximum_number_of_epochs",
              "maximum_training_time",
              "number_of_cpu_threads",
              "number_of_gpus",
          ]:
              param[k] = int(v)
          elif k in [
              "dropout_rate",
              "learning_rate",
              "gradient_clipping_value",
          ]:
              param[k] = float(v)
          elif k in [
              "remap_unknown_tokens_to_unk",
              "use_character_lstm",
              "use_crf",
              "train_model",
              "use_pretrained_model",
              "debug",
              "verbose",
              "reload_character_embeddings",
              "reload_character_lstm",
              "reload_token_embeddings",
              "reload_token_lstm",
              "reload_feedforward",
              "reload_crf",
              "check_for_lowercase",
              "check_for_digits_replaced_with_zeros",
              "output_scores",
              "freeze_token_embeddings",
              "load_only_pretrained_token_embeddings",
              "load_all_pretrained_token_embeddings",
          ]:
              param[k] = distutils.util.strtobool(v)
  
      return param
  
imports: import codecs
  import configparser
  import copy
  import distutils.util
  import glob
  import os
  import pickle
  from pprint import pprint
  import random
  import shutil
  import sys
  import time
  import warnings
  import pkg_resources
  import numpy
  import matplotlib
  import tensorflow
  from tensorflow.contrib.tensorboard.plugins import projector
  from neuroner import train
  from neuroner import dataset
  from neuroner.entity_lstm import EntityLSTM
  from neuroner import utils
  from neuroner import conll_to_brat
  from neuroner import evaluate
  from neuroner import brat_to_conll
  from neuroner import utils_nlp
label_desc: Use image node_id 6 for calling a global function with example usage: _clean_param_dtypes(param) and returns: param