def METHOD_NAME(o: Any) -> Any:
    from vdk.internal.core.context import CoreContext
    from vdk.internal.core.config import Configuration
    if (
        isinstance(o, click.core.Context)
        or isinstance(o, JobContext)
        or isinstance(o, CoreContext)
        or isinstance(o, Configuration)
    ):
        return vars(o)
    return str(o)