def METHOD_NAME(table_name: str, schema_name: Optional[str] = None, database_name: Optional[str] = None):  # noqa
    # Prefix the table name with database and schema name using
    # the format: {database_name}.{table_schema}.{table_name}.
    name = [table_name]
    if schema_name is not None:
        name = [schema_name] + name
    if database_name is not None:
        name = [database_name] + name
    return ".".join(name)