code: def is_public(self):
          
          return (
              not self.name.startswith("_")
              and self.parent.is_class
              and self.parent.is_public
          )
docs: Return True iff this class should be considered public.