from typing import Any
from typing import Dict


def metadata(user_model: Any) -> Dict:
    """
    Call the user model to get the model metadata

    Parameters
    ----------
    user_model
       User defined class instance
    Returns
    -------
      Model Metadata
    """
    if hasattr(user_model, "metadata"):
        return user_model.metadata()
    else:
        return {}