def inside(accessing_obj, accessed_obj, *args, **kwargs):
 return (accessing_obj.location == accessed_obj)

def inside ( accessing_obj , accessed_obj , * args , ** kwargs ) : return ( accessing_obj . location == accessed_obj )
is resource1 inside resource2? return true if so .