code: def from_current(cls):
          
          if properties.application_id is None:
              raise context.ValueError("Not running inside a container")
  
          return cls(properties.appmaster_address,
                     properties.application_id,
                     security=Security.from_default())
docs: Create an application client from within a running container.
  
          Useful for connecting to the application master from a running
          container in a application.