code: def _CheckForDependency(parent, name):
     
     if _allowCapitalizedNames:
        # If the flag is set, check for both capitalized and
        # uncapitalized form. This is a temporary fix for handling
        # vim.EsxCLI namespace.
        # Ex: If we add vim.EsxCLI.vdisk, then
        # _dependencyMap['vim.EsxCLI'] will have value ['vdisk'].
        # When we try to check dependency for vdisk, since the flag
        # is set, we will uncapitalize EsxCLI and this will result
        # in attribute error
        dependents = _dependencyMap.get(parent)
        if not dependents:
           uncapitalizedParent = UncapitalizeVmodlName(parent)
           dependents = _dependencyMap.get(uncapitalizedParent)
  
        if dependents:
           if name in dependents or Uncapitalize(name) in dependents:
              return True
     else:
        dependents = _dependencyMap.get(parent)
        if dependents:
           if name in dependents:
              return True
     return False
docs: Note: Must be holding the _lazyLock