code: def parse_int_from_env(key, default=None):
      try:
          value = os.environ[key]
      except KeyError:
          _value = default
      else:
          try:
              _value = int(value)
          except ValueError:
              raise ValueError("If set, {} must be a int.".format(key))
      return _value
  
imports: import inspect
  import os
  import shutil
  import stat
  import time
  import unittest
  import uuid
  from contextlib import contextmanager
  from enum import Enum
  from functools import wraps
  from pathlib import Path
  from typing import Callable, Optional, Type, TypeVar, Union
  from unittest.mock import Mock, patch
  import pytest
  import requests
  from huggingface_hub.utils import is_gradio_available, logging, reset_sessions
  from tests.testing_constants import ENDPOINT_PRODUCTION, ENDPOINT_PRODUCTION_URL_SCHEME
label_desc: Use image node_id 3 for calling a global function with example usage: parse_int_from_env(key, default) and returns: _value