code: def set_properties(self, names, values):
          
          if not isinstance(names, list):
              raise TypeError("names can only be an instance of type list")
          for a in names[:10]:
              if not isinstance(a, basestring):
                  raise TypeError(
                          "array can only contain objects of type basestring")
          if not isinstance(values, list):
              raise TypeError("values can only be an instance of type list")
          for a in values[:10]:
              if not isinstance(a, basestring):
                  raise TypeError(
                          "array can only contain objects of type basestring")
          self._call("setProperties",
                       in_p=[names, values])
docs: Sets values for a group of properties in one call.
          
          The names of the properties to set are passed in the @a names
          array along with the new values for them in the @a values array. Both
          arrays have the same number of elements with each element at the given
          index in the first array corresponding to an element at the same index
          in the second array.
          
          If there is at least one property name in @a names that is not valid,
          the method will fail before changing the values of any other properties
          from the @a names array.
          
          Using this method over :py:func:`set_property`  is preferred if you
          need to set several properties at once since it is more efficient.
          
          The list of all properties supported by the given medium format can
          be obtained with :py:func:`IMediumFormat.describe_properties` .
          
          Setting the property value to @c null or an empty string is equivalent
          to deleting the existing value. A default value (if it is defined for
          this property) will be used by the format backend in this case.
  
          in names of type str
              Names of properties to set.
  
          in values of type str
              Values of properties to set.