code: def record_once(self, func: DeferedSetupFunction) -> None:
          
          def wrapper(state: 'BlueprintSetupState') -> None:
              if state.first_registration:
                  func(state)
          self.record(update_wrapper(wrapper, func))
docs: Used to register a deferred action that happens only once.