code: def _convert_cycles_to_time(n_cycles, clock_period):
      time_in_ns = n_cycles * clock_period
      if time_in_ns < 1000:
          return str(time_in_ns) + " ns"
  
      time_in_us = time_in_ns / 1000
      if time_in_us < 1000:
          return str(time_in_us) + " \u00B5s"
  
      time_in_ms = time_in_us / 1000
      if time_in_ms < 1000:
          return str(time_in_ms) + " ms"
  
      time_in_s = time_in_ms / 1000
      if time_in_s < 1000:
          return str(time_in_s) + " s"
  
imports: import os
  import re
  import sys
  import xml.etree.ElementTree
label_desc: Use image node_id 18 for calling a global function with example usage: _convert_cycles_to_time(n_cycles, clock_period) and returns: unknown, unknown, unknown, unknown