code: def comments_are_open(content_object):
      
      moderator = get_model_moderator(content_object.__class__)
      if moderator is None:
          return True
  
      # Check the 'enable_field', 'auto_close_field' and 'close_after',
      # by reusing the basic Django policies.
      return CommentModerator.allow(moderator, None, content_object, None)
docs: Return whether comments are still open for a given target object.