def has_entities(status):
try:<EOL><INDENT>if sum(len(v) for v in status.entities.values()) > <NUM_LIT:0>:<EOL><INDENT>return True<EOL><DEDENT><DEDENT>except AttributeError:<EOL><INDENT>if sum(len(v) for v in status['<STR_LIT>'].values()) > <NUM_LIT:0>:<EOL><INDENT>return True<EOL><DEDENT><DEDENT>return False<EOL>
Returns true if a Status object has entities.

Args:
    status: either a tweepy.Status object or a dict returned from Twitter API