code: def _get_endpoint_from_env():
      import os
  
      endpoint = os.environ.get("KAGGLE_API_ENDPOINT")
      if endpoint is None:
          return None
      endpoint = endpoint.rstrip("/")
      if endpoint.endswith("/api/v1"):
          return endpoint
      return endpoint + "/api/v1"
  
imports: from __future__ import absolute_import
  import copy
  import logging
  import multiprocessing
  import sys
  import urllib3
  import six
  from six.moves import http_client
label_desc: Use image node_id 1 for calling a global function with example usage: _get_endpoint_from_env() and returns: unknown, None, endpoint