code: def update(self, name, modifiers, dtype, kind):
          
          self.update_name(name)
          self.modifiers = modifiers
          self.dtype = dtype
          self.kind = kind
          self.update_dtype()
docs: Updates the attributes for the function instance, handles name changes
          in the parent module as well.