def METHOD_NAME(
    evalml_path,
):
    """Gets configuration for black.
    Args:
        evalml_path: Path to evalml root.
    Returns:
        Dictionary of black configuration.
    """
    black_config = None
    try:
        toml_dict = None
        evalml_path = pathlib.Path(evalml_path, "pyproject.toml")
        with open(evalml_path, "rb") as f:
            toml_dict = tomli.load(f)
        black_config = toml_dict["tool"]["black"]
        black_config["line_length"] = black_config.pop("line-length")
        target_versions = set(
            [
                black.TargetVersion[ver.upper()]
                for ver in black_config.pop("target-version")
            ],
        )
        black_config["target_versions"] = target_versions
    except Exception:
        black_config = {
            "line_length": 88,
            "target_versions": set([black.TargetVersion["PY39"]]),
        }
    return black_config