code: def to_dict(self):
          
          if not isinstance(self.graph.loader, PartitioningLoader):
              return dict(msg="Config sharing disabled for non-partioned loader")
  
          if not hasattr(self.graph.loader, "secrets"):
              return dict(msg="Config sharing disabled if no secrets are labelled")
  
          def remove_nulls(dct):
              return {key: value for key, value in dct.items() if value is not None}
  
          return loads(
              dumps(self.graph.loader.config, skipkeys=True, default=lambda obj: None),
              object_hook=remove_nulls,
          )
docs: Encode the name, the status of all checks, and the current overall status.