def guess_filename(obj):
    name = getattr(obj, 'name', None)
    if name and name[0] != '<' and name[-1] != '>':
        return name

# From mitsuhiko/werkzeug (used with permission).
Tries to guess the filename of the given object.
dataset/ETHPy150Open bububa/pyTOP/pyTOP/packages/requests/utils.py/guess_filename