code: def string_to_dict(sid, value):
      parts = sid.split(".")
  
      def pack(parts):
          if len(parts) == 1:
              return {parts[0]: value}
          elif len(parts):
              return {parts[0]: pack(parts[1:])}
          return parts
  
      return pack(parts)
  
imports: from __future__ import absolute_import, print_function, unicode_literals
  from glob import glob
  from functools import reduce
  import json
  import jsone
  import os
  import sys
  import requests
  import slugid
  import yaml
  import subprocess
  import networkx
label_desc: Use image node_id 1 for calling a global function with example usage: string_to_dict(sid, value) and returns: pack, parts, dict, dict