def METHOD_NAME(
        temp_dir: tempfile.TemporaryDirectory) -> None:
    """Creates a fake temporary module that can be used as a Vertex SDK mock
    for testing purposes."""
    import inspect
    import os
    import textwrap
    class VertexModel:
        schema_title = 'google.VertexModel'
        schema_version = '0.0.0'
        def __init__(self, name: str, uri: str, metadata: dict) -> None:
            self.name = name
            self.uri = uri
            self.metadata = metadata
        @property
        def path(self) -> str:
            return self.uri.replace('gs://', '/')
    class VertexDataset:
        schema_title = 'google.VertexDataset'
        schema_version = '0.0.0'
        def __init__(self, name: str, uri: str, metadata: dict) -> None:
            self.name = name
            self.uri = uri
            self.metadata = metadata
        @property
        def path(self) -> str:
            return self.uri.replace('gs://', '/')
    class_source = textwrap.dedent(
        inspect.getsource(VertexModel)) + '\n\n' + textwrap.dedent(
            inspect.getsource(VertexDataset))
    with open(os.path.join(temp_dir.name, 'aiplatform.py'), 'w') as f:
        f.write(class_source)