def _patched_describe_cluster(emr_conn, *args, **kwargs):
 try:
  boto.emr.connection.Cluster = _PatchedCluster
  return emr_conn.describe_cluster(*args, **kwargs)
 finally:
  boto.emr.connection.Cluster = Cluster

def _patched_describe_cluster ( emr_conn , * args , ** kwargs ) : try : boto . emr . connection . Cluster = _PatchedCluster return emr_conn . describe_cluster ( * args , ** kwargs ) finally : boto . emr . connection . Cluster = Cluster
wrapper for :py:meth:boto .