code: def is_public(self):
          
          if self.dunder_all is not None:
              return self.name in self.dunder_all
          else:
              return not self.name.startswith('_')
docs: Return True iff this function should be considered public.