code: def path_is_parent(parent_path, child_path):
      """Returns if the provided parent path is a parent of the provided child path.
  
      Args:
        parent_path: File path to check as parent.
        child_path: File path to check as child.
  
      Returns:
        True if parent_path is a parent of the child_path.
      """
      # Smooth out relative path names.
      parent_path = os.path.normpath(parent_path)
      child_path = os.path.normpath(child_path)
  
      # Compare the common path of the parent and child path with the common path of
      # just the parent path. Using the commonpath method on just the parent path
      # will regularise the path name in the same way as the comparison that deals
      # with both paths, removing any trailing path separator.
      return os.path.commonpath([parent_path]) == os.path.commonpath(
          [parent_path, child_path]
      )
  
file_path: what-if-tool/utils/platform_utils.py
imports: import csv
  from glob import glob
  from grpc.beta import implementations
  import os
  import random
  from six.moves.urllib.parse import urlparse
  import tensorflow
  from utils import common_utils
  from tensorflow.core.framework import types_pb2
  from tensorflow_serving.apis import classification_pb2
  from tensorflow_serving.apis import predict_pb2
  from tensorflow_serving.apis import prediction_service_pb2
  from tensorflow_serving.apis import regression_pb2
label_desc: Use image node_id 2 for calling a global function with example usage: path_is_parent(parent_path, child_path) and returns: unknown