code: def pause_endpoint(params):
      endpoint_id = os.environ["ENDPOINT_ID"]
      username = endpoint_id.split("/")[0]
      project_name = endpoint_id.split("/")[1]
      api_url = f"https://api.endpoints.huggingface.cloud/v2/endpoint/{username}/{project_name}/pause"
      headers = {"Authorization": f"Bearer {params.token}"}
      r = requests.post(api_url, headers=headers)
      return r.json()
  
file_path: autotrain-advanced/src/autotrain/trainers/text_classification/utils.py
imports: import os
  import numpy
  import requests
  from sklearn import metrics
label_desc: Use image node_id 4 for calling a global function with example usage: pause_endpoint(params) and returns: r