(self, fmt)
return {b"X-Sumo-Category": "{env}/{domain}/{fmt}".format(
            env=environment,
            domain=self.domain,
            fmt=fmt,
        ).encode('utf-8')}
https://docs.google.com/document/d/18sSwv2GRGepOIHthC6lxQAh_aUYgDcTou6w9jL2976o/edit#bookmark=id.ao4j7x5tjvt7
https://docs.google.com/document/d/18sSwv2GRGepOIHthC6lxQAh_aUYgDcTou6w9jL2976o/edit#bookmark=id.ao4j7x5tjvt7
https : // docs . google . com / document / d / 18sSwv2GRGepOIHthC6lxQAh_aUYgDcTou6w9jL2976o / edit#bookmark = id . ao4j7x5tjvt7
def _get_header(self, fmt):
        """
        https://docs.google.com/document/d/18sSwv2GRGepOIHthC6lxQAh_aUYgDcTou6w9jL2976o/edit#bookmark=id.ao4j7x5tjvt7
        """
        environment = 'test-env'
        if settings.SERVER_ENVIRONMENT in settings.ICDS_ENVS:
            environment = 'cas'
        if settings.SERVER_ENVIRONMENT == 'india':
            environment = 'india'
        if settings.SERVER_ENVIRONMENT == 'production':
            environment = 'prod'

        return {b"X-Sumo-Category": "{env}/{domain}/{fmt}".format(
            env=environment,
            domain=self.domain,
            fmt=fmt,
        ).encode('utf-8')}
def _get_header ( self , fmt ) : environment = 'test-env' if settings . SERVER_ENVIRONMENT in settings . ICDS_ENVS : environment = 'cas' if settings . SERVER_ENVIRONMENT == 'india' : environment = 'india' if settings . SERVER_ENVIRONMENT == 'production' : environment = 'prod' return { b"X-Sumo-Category" : "{env}/{domain}/{fmt}" . format ( env = environment , domain = self . domain , fmt = fmt , ) . encode ( 'utf-8' ) }