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