def METHOD_NAME(filepath, overwrite):
    """Create a configuration file with default parameters.
    This command will create a configuration file under <filepath>
    using default configuration parameters. When <filepath> is not
    given the default location for the configuration file will be
    used instead.
    The configuration file must not exist. Otherwise the command
    will return with an error. Use the option '--overwrite' to force
    to replace the existing file.
    """
    if not filepath:
        dirpath = os.path.expanduser(SORTINGHAT_CFG_DIR_NAME)
        os.makedirs(dirpath, exist_ok=True)
        config_file = os.path.join(dirpath, SORTINGHAT_CFG_FILE_NAME)
    else:
        config_file = filepath
    if os.path.isfile(config_file) and not overwrite:
        msg = ("Configuration file {} already exists. "
               "Use '--overwrite' to replace it.").format(config_file)
        raise click.ClickException(msg)
    cfg = configparser.ConfigParser()
    cfg.read_dict(CONFIG_OPTIONS)
    try:
        with open(config_file, 'w') as f:
            cfg.write(f)
    except IOError as e:
        raise click.FileError(config_file, hint=str(e))