code: def convert_time_scale(sec, format="m"):
      converter = {"m": 1e3, "u": 1e6, "n": 1e9}
  
      if format not in converter.keys():
          raise NotImplementedError(
              "format must be {}".format(converter.keys())
          )
  
      return sec * converter[format]
  
imports: from __future__ import division, print_function
  import csv
  import os
  import sys
  import time
  from collections import namedtuple
  from functools import partial
  import nnabla
  from nnabla.ext_utils import import_extension_module
label_desc: Use image node_id 1 for calling a global function with example usage: convert_time_scale(sec, format) and returns: unknown