def __init__(self, path, *args, **kwargs):
        if not isinstance(path, (basestring, file)):
            raise ValueError('Invalid parameter for Track. Path or File '
                             'expected, got %s' % type(path))

        _path = path
        if isinstance(path, file):
            _path = path.name

        no_metadata = kwargs.get('no_metadata', False)
        if kwargs in 'no_metadata':
            del(kwargs['no_metadata'])

        hash_file = kwargs.get('hash_file', False)
        if 'hash_file' in kwargs:
            del(kwargs['hash_file'])

        self._meta = None
        self.set_path(_path, no_metadata=no_metadata)
        if hash_file:
            self.hash = self.calculate_hash()

        if 'date_added' not in kwargs:
            kwargs['date_added'] = datetime.today()

        super(Track, self).__init__(*args, **kwargs)
dataset/ETHPy150Open tooxie/shiva-server/shiva/models.py/Track.__init__/swapped operands of `in`