def insert(self, loc, item):
        _self = np.asarray(self)
        item = self._coerce_scalar_to_index(item)._values

        idx = np.concatenate((_self[:loc], item, _self[loc:]))
        return self._shallow_copy_with_infer(idx)
Check if given SHA1 refers to a commit object on a valid ref.
dataset/ETHPy150Open pydata/pandas/pandas/indexes/base.py/Index.insert--crossover with--dataset/ETHPy150Open openstack/git-upstream/git_upstream/lib/utils.py/GitMixin.is_valid_commit