def METHOD_NAME(self, obj: dict, oid = None):
    mock_node = Mock()
    if oid is None:
        mock_node.get_oid.return_value = self.get_mock_node()
    else:
        mock_node.get_oid.return_value = oid
    for key in obj:
        setattr(mock_node, key, obj[key])
    return mock_node