code: def generate_parameters_data(self, var_list, batch_size):
      from nnabla.core.graph_def import _create_initializer
      from nnabla.parameter import get_parameter_or_create
      import numpy as np
  
      rng = np.random.RandomState(0)
      for var in var_list:
          shape = tuple(
              [d if d >= 1 else batch_size for d in var.shape.dim]
          )
          initializer = _create_initializer(var, rng)
          variable_instance = get_parameter_or_create(
              var.name, shape, initializer
          )
          p = self._nnp.parameter.add()
          p.variable_name = var.name
          p.shape.dim.extend(shape)
          p.data.extend(variable_instance.d.flatten())
  
file_path: nnabla/python/src/nnabla/utils/converter/nnabla/importer.py
imports: import os
  import shutil
  import tempfile
  import zipfile
  import google.protobuf.text_format
  from nnabla.utils import nnabla_pb2
  from .None import expander
label_desc: Use image node_id 6 for calling the NnpImporter obj's underlying member method code with example usage: obj.generate_parameters_data(var_list, batch_size) without return types