code: def clean_params(self):
          
          result = self.params.copy()
          if self.cog is not None:
              # first parameter is self
              result.popitem(last=False)
  
          try:
              # first/second parameter is context
              result.popitem(last=False)
          except Exception:
              raise ValueError('Missing context parameter') from None
  
          return result
docs: Retrieves the parameter OrderedDict without the context or self parameters.
  
          Useful for inspecting signature.