@staticmethod
def auth_header(token, basic_auth):
    """
        Create an auth header that optionally includes a bearer token or basic auth.

        Args:
            auth (str): Bearer token or Basic auth to use in header

        Returns:
            dictionary: containing Authorization headers or {} if Authorizationis is None.

        """
    if token is not None:
        return {'Authorization': 'Bearer {token}'.format(token=token)}
    elif basic_auth is not None:
        return {'Authorization': basic_auth}
    return {}
