code: def copy(self, name=None):
          
          if name is None:
              return Attribute(
                  javabridge.call(self.jobject, "copy", "()Ljava/lang/Object;"))
          else:
              return Attribute(
                  javabridge.call(self.jobject, "copy", "(Ljava/lang/String;)Lweka/core/Attribute;", name))
docs: Creates a copy of this attribute.
  
          :param name: the new name, uses the old one if None
          :type name: str
          :return: the copy of the attribute
          :rtype: Attribute