code: def get_using_dot_notation(dictionary, keys):
      """Extract `keys` from dictionary where keys is a string in dot notation.
  
      Args:
          dictionary (Dict)
          keys (str)
  
      Returns:
          Nested object within dictionary as defined by "keys"
  
      Raises:
       ValueError if the provided key does not exist in input dictionary
      """
      try:
          if keys is None:
              return dictionary
          split_keys = keys.split(".", 1)
          key = split_keys[0]
          rest = None
          if len(split_keys) > 1:
              rest = split_keys[1]
          bracket_accessors = re.findall(r"\[(.+?)]", key)
          if bracket_accessors:
              pre_bracket_key = key.split("[", 1)[0]
              inner_dict = dictionary[pre_bracket_key]
          else:
              inner_dict = dictionary[key]
          for bracket_accessor in bracket_accessors:
              if (
                  bracket_accessor.startswith("'")
                  and bracket_accessor.endswith("'")
                  or bracket_accessor.startswith('"')
                  and bracket_accessor.endswith('"')
              ):
                  # key accessor
                  inner_key = bracket_accessor[1:-1]
              else:
                  # list accessor
                  inner_key = int(bracket_accessor)
              inner_dict = inner_dict[inner_key]
          return get_using_dot_notation(inner_dict, rest)
      except (KeyError, IndexError, TypeError):
          raise ValueError(
              f"{keys} does not exist in input dictionary."
          )
  
file_path: sagemaker-python-sdk/src/sagemaker/local/utils.py
imports: from __future__ import absolute_import
  import os
  import logging
  import shutil
  import subprocess
  import json
  import re
  import errno
  from distutils.dir_util import copy_tree
  from six.moves.urllib.parse import urlparse
  from sagemaker import s3
label_desc: Use image node_id 7 for calling a global function with example usage: get_using_dot_notation(dictionary, keys) and returns: get_using_dot_notation, dictionary