code: def copy_directory_structure(destination_directory, relative_path):
      """Creates intermediate directory structure for relative_path.
  
      Create all the intermediate directories required for relative_path to
      exist within destination_directory. This assumes that relative_path is a
      directory located within root_dir.
  
      Examples:
          destination_directory: /tmp/destination relative_path: test/unit/
          will create: /tmp/destination/test/unit
  
      Args:
          destination_directory (str): root of the destination directory where the
              directory structure will be created.
          relative_path (str): relative path that will be created within
              destination_directory
      """
      full_path = os.path.join(destination_directory, relative_path)
      if os.path.exists(full_path):
          return
  
      os.makedirs(destination_directory, relative_path)
  
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 1 for calling a global function with example usage: copy_directory_structure(destination_directory, relative_path) without return types