code: def _iparam_namespace_from_namespace(self, obj):
          # pylint: disable=invalid-name,
          
  
          if isinstance(obj, six.string_types):
              namespace = obj.strip('/')
          elif obj is None:
              namespace = obj
          else:
              raise TypeError(
                  _format("The 'namespace' argument of the WBEMConnection "
                          "operation has invalid type {0} (must be None, or a "
                          "string)",
                          type(obj)))
          if namespace is None:
              namespace = self.default_namespace
          return namespace
docs: Determine the namespace from a namespace string, or `None`. The
          default namespace of the connection object is used, if needed.
  
          Return the so determined namespace for use as an argument to
          imethodcall().