def METHOD_NAME(
        neighbor,
        adjacency: sparse.spmatrix,
        resolution: float = None,
        random_state: AnyRandom = 0,
        flavor: Literal['vtraag', 'igraph', 'rapids'] = 'vtraag',
        directed: bool = True,
        use_weights: bool = False,
        partition_type: Optional[Type[MutableVertexPartition]] = None,
        partition_kwargs: Mapping[str, Any] = MappingProxyType({}),