code: def ops_entity(self, ops):
          ''' Returns a new multi-op entity name string that represents
          all the given operations and caveats. It returns the same value
          regardless of the ordering of the operations. It assumes that the
          operations have been canonicalized and that there's at least one
          operation.
  
          :param ops:
          :return: string that represents all the given operations and caveats.
          '''
          # Hash the operations, removing duplicates as we go.
          hash_entity = hashlib.sha256()
          for op in ops:
              hash_entity.update('{}\n{}\n'.format(
                  op.action, op.entity).encode())
          hash_encoded = base64.urlsafe_b64encode(hash_entity.digest())
          return 'multi-' + hash_encoded.decode('utf-8').rstrip('='f ops_entity(self, ops):
          ''' Returns a new multi-op entity name string that represents
          all the given operations and caveats. It returns the same value
          regardless of the ordering of the operations. It assumes that the
          operations have been canonicalized and that there's at least one
          operation.
  
          :param ops:
          :return: string that represents all the given operations and caveats.
          '''
          # Hash the operations, removing duplicates as we go.
          hash_entity = hashlib.sha256()
          for op in ops:
              hash_entity.update('{}\n{}\n'.format(
                  op.action, op.entity).encode())
          hash_encoded = base64.urlsafe_b64encode(hash_entity.digest())
          return 'multi-' + hash_encoded.decode('utf-8').rstrip('=')
docs: Returns a new multi-op entity name string that represents
          all the given operations and caveats. It returns the same value
          regardless of the ordering of the operations. It assumes that the
          operations have been canonicalized and that there's at least one
          operation.
  
          :param ops:
          :return: string that represents all the given operations and caveats.