code: def prepare_initial_network(
      dir, run_opts, srand=-3, input_model=None
  ):
      if input_model is not None:
          shutil.copy(input_model, "{0}/0.raw".format(dir))
          return
      if os.path.exists(dir + "/configs/init.config"):
          common_lib.execute_command(
              """{command} {dir}/log/add_first_layer.log \
                      nnet3-init --srand={srand} {dir}/init.raw \
                      {dir}/configs/final.config {dir}/0.raw""".format(
                  command=run_opts.command, srand=srand, dir=dir
              )
          )
      else:
          common_lib.execute_command(
              """{command} {dir}/log/init_model.log \
             nnet3-init --srand={srand} {dir}/configs/final.config {dir}/0.raw""".format(
                  command=run_opts.command, srand=srand, dir=dir
              )
          )
  
imports: from __future__ import division
  import argparse
  import glob
  import logging
  import os
  import math
  import re
  import shutil
  import libs.common
  from libs.nnet3.train.dropout_schedule import *
  import unittest
label_desc: Use image node_id 18 for calling a global function with example usage: prepare_initial_network(dir, run_opts, srand, input_model) without return types