def METHOD_NAME(
    self,
    block_name: str,
    pipeline: Pipeline,
    extension_uuid: str = None,
    priority: int = None,
    upstream_block_uuids: List[str] = None,
    **kwargs,
) -> Block:
    configuration = None
    if self.configuration and type(self.configuration) is dict:
        configuration = self.configuration
    return Block.create(
        block_name,
        self.block_type,
        get_repo_path(),
        color=self.color,
        configuration=configuration,
        extension_uuid=extension_uuid,
        language=self.language,
        pipeline=pipeline,
        priority=priority,
        upstream_block_uuids=upstream_block_uuids,
    )