code: def __init__(
      self, kind, group=_GROUP, version=_VERSION, namespace=_NAMESPACE
  ):
      self.group = group
      self.version = version
      self.namespace = namespace
      if kind.lower()[-1] != "s":
          self.plural = kind.lower() + "s"
      else:
          self.plural = kind.lower()
  
      # init k8s client config
      in_cluster = os.getenv(in_cluster_env, default="False")
      log.debug(f"env variable IN_CLUSTER: {in_cluster}")
      if in_cluster.lower() == "true":
          config.load_incluster_config()
      else:
          config.load_kube_config()
  
file_path: milvus/tests/python_client/common/cus_resource_opts.py
imports: from __future__ import print_function
  import os
  from kubernetes import client, config
  from kubernetes.client.rest import ApiException
  from utils.util_log import test_log
  from common.common_type import in_cluster_env
label_desc: Use image node_id 1 to create a new CustomResourceOperations object from inherited base classes: object with example: obj = CustomResourceOperations(kind, group, version, namespace)