code: def test_get_default_config_name_permission_error():
      # Raise populated error message in case of PermissionError
      builder_dir = epath.Path("builder/dir")
      error_msg = f"Permission error when accessing: {builder_dir}"
      with _assert_raises(error_msg):
          with mock.patch.object(
              registered,
              "imported_builder_cls",
              side_effect=PermissionError,
          ):
              actual_default_config_name = (
                  read_only_builder._get_default_config_name(
                      builder_dir=builder_dir, name="name"
                  )
              )
              assert actual_default_config_name is None
  
imports: import contextlib
  import functools
  import os
  import pathlib
  import re
  from typing import Sequence
  from unittest import mock
  import dill
  from etils import epath
  import pytest
  import tensorflow
  from tensorflow_datasets import testing
  from tensorflow_datasets.core import constants
  from tensorflow_datasets.core import dataset_builder
  from tensorflow_datasets.core import dataset_utils
  from tensorflow_datasets.core import load
  from tensorflow_datasets.core import proto
  from tensorflow_datasets.core import read_only_builder
  from tensorflow_datasets.core import registered
  from tensorflow_datasets.core import splits
  from tensorflow_datasets.core import utils
  from tensorflow_datasets.core.features import features_dict
  from tensorflow_datasets.core.proto import dataset_info_pb2
  from tensorflow_datasets.core.utils import error_utils
  from tensorflow_datasets.core.utils import file_utils
  from google.protobuf import json_format
label_desc: Use image node_id 21 for calling a global function with example usage: test_get_default_config_name_permission_error() without return types