code: def load_from_stream(self, dim):
          
          self.unlimited = dim.isUnlimited
          self.private = dim.isPrivate
          self.vlen = dim.isVlen
          if not self.vlen:
              self.size = dim.length
docs: Load from an NCStream object.