def _called_with_cfg(*args, **kwargs):
    '\n    Returns:\n        bool: whether the arguments contain CfgNode and should be considered\n            forwarded to from_config.\n    '
    if (len(args) and isinstance(args[0], _CfgNode)):
        return True
    if isinstance(kwargs.pop('cfg', None), _CfgNode):
        return True
    return False
Returns:
    bool: whether the arguments contain CfgNode and should be considered
        forwarded to from_config.
def _called_with_cfg(*args, **kwargs):
    '\n    Returns:\n        bool: whether the arguments contain CfgNode and should be considered\n            forwarded to from_config.\n    '
    if (len(args) and isinstance(args[0], _CfgNode)):
        return True
    if isinstance(kwargs.pop('cfg', None), _CfgNode):
        return True
    return False