code: def is_local_path(path):
      if path.startswith("/dbfs"):
          return False
      parse_result = urlparse(path)
      return (
          len(parse_result.scheme.lower()) == 0
          or parse_result.scheme.lower() == "file"
      )
  
imports: import functools
  import glob
  import os
  import subprocess
  import tempfile
  import uuid
  from urllib.parse import urlparse
  import numpy
  from bigdl.dllib.utils.common import Sample, JTensor, JavaCreator, _get_gateway, _py2java, _java2py
  from bigdl.dllib.utils.log4Error import *
label_desc: Use image node_id 8 for calling a global function with example usage: is_local_path(path) and returns: unknown, False