def METHOD_NAME(file_path):
    """Resolve artifact name from given file path.
    If not specified, will auto create one.
    Args:
        file_path (str): Path to the file.
    Returns:
        str: The resolved artifact name.
    """
    _, filename = os.path.split(file_path)
    if filename:
        return filename
    return _utils.name("artifact")