def perform_attr_call(
    obj,
    attr_name: str = 'attr_name',
    *args,
    **kwargs,
) -> [{"name": "call_return_value"}]:
    """Call attribute/method from object and return the return value"""
    return getattr(obj, attr_name)(*args, **kwargs)
Call attribute/method from object and return the return value
nodezator/graphman/capsulenode/generaldefs.py