code: def _update_metadata(self, kwargs=None):
          '''Extract any additional attributes to hold with the instance
             from kwargs
          '''
  
          # If not given metadata, use instance.list to get it for container
          if kwargs == None and hasattr(self, 'name'):
              kwargs = self._list(self.name, quiet=True, return_json=True)
  
          # Add acceptable arguments
          for arg in ['pid', 'name']:
  
             # Skip over non-iterables:
             if arg in kwargs:
                 setattr(self, arg, kwargs[arg])
         
          if "image" in kwargs:
              self._image = kwargs['image']
          elif "container_image" in kwargs:
              self._image = kwargs['container_image'f _update_metadata(self, kwargs=None):
          '''Extract any additional attributes to hold with the instance
             from kwargs
          '''
  
          # If not given metadata, use instance.list to get it for container
          if kwargs == None and hasattr(self, 'name'):
              kwargs = self._list(self.name, quiet=True, return_json=True)
  
          # Add acceptable arguments
          for arg in ['pid', 'name']:
  
             # Skip over non-iterables:
             if arg in kwargs:
                 setattr(self, arg, kwargs[arg])
         
          if "image" in kwargs:
              self._image = kwargs['image']
          elif "container_image" in kwargs:
              self._image = kwargs['container_image']
docs: Extract any additional attributes to hold with the instance
             from kwargs