<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def update_nsval( self, *, nsval: str = None, ns: str = None, val: str = None ) -> None: """Update Namespace and valueast. Args: nsval: e.g. HGNC:AKT1 ns: namespace val: value of entity """


        if not (ns and val) and nsval:
            (ns, val) = nsval.split(":", 1)
        elif not (ns and val) and not nsval:
            log.error("Did not update NSArg - no ns:val or nsval provided")

        self.namespace = ns
        self.value = val