code: def clean_up_location_tracking(gis):
      # disable location tracking
      if gis.admin.location_tracking.status != "disabled":
          gis.admin.location_tracking.disable()
  
      roles = gis.users.roles.all()
      for role in roles:
          if role.name == "Track Viewer":
              role.delete()
              break
  
file_path: arcgis-python-api/misc/_common.py
imports: from arcgis.gis import GIS
label_desc: Use image node_id 8 for calling a global function with example usage: clean_up_location_tracking(gis) without return types