def METHOD_NAME(
    params: Dict, name: Optional[str] = None, *, header: bool = True
) -> str:
    """
    Create parameterframe python files as a string
    Parameters
    ----------
    params: Dict
        Dictionary of parameters to add to ParameterFrame
    name: Optional[str]
        name of ParameterFrame
    header: bool
        add import header
    """
    param_cls = (
        (
            "from dataclasses import dataclass\n\n"
            "from bluemira.base.parameterframe import Parameter, ParameterFrame\n\n\n"
        )
        if header
        else ""
    )
    param_cls += "@dataclass\nclass {}(ParameterFrame):\n"
    if name is None:
        param_cls = param_cls.format("ReactorParams")
    else:
        param_cls = param_cls.format(name)
    param_row = "    {name}: {_type}\n"
    for param, param_type in params.items():
        param_cls += param_row.format(name=param, _type=str(param_type).split(".")[-1])
    return param_cls