code: def convert_nested(dct):
      def insert(dct, lst):
          for x in lst[:-2]:
              dct[x] = dct = dct.get(x, dict())
          dct.update({lst[-2]: lst[-1]})
  
          # empty dict to store the result
  
      result = dict()
  
      # create an iterator of lists
      # representing nested or hierarchial flow
      lsts = ([*k.split("."), v] for k, v in dct.items())
  
      # insert each list into the result
      for lst in lsts:
          insert(result, lst)
      return result
  
imports: import time
  import logging
  import string
  import random
  import requests
  import json
  import os
  from yaml.representer import SafeRepresenter
  import yaml
  import tableprint
  import config
label_desc: Use image node_id 4 for calling a global function with example usage: convert_nested(dct) and returns: result